'v8_enable_handle_zapping': 1,
},
'defines': [ 'DEBUG', '_DEBUG' ],
- 'cflags': [ '-g', '-O0' ],
+ 'cflags': [ '-g', '-O0', '-fPIE' ],
+ 'ldflags': [ '-pie' ],
'conditions': [
['target_arch=="x64"', {
'msvs_configuration_platform': 'x64',
'variables': {
'v8_enable_handle_zapping': 0,
},
- 'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections' ],
+ 'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections', '-fPIE' ],
+ 'ldflags': [ '-pie' ],
'conditions': [
['target_arch=="x64"', {
'msvs_configuration_platform': 'x64',