mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
tools: fix usage of inherited -fPIC and -fPIE
PR-URL: https://github.com/nodejs/node-gyp/pull/1340 Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
parent
8a83972743
commit
6f5a408934
1 changed files with 10 additions and 2 deletions
12
addon.gypi
12
addon.gypi
|
@ -55,6 +55,14 @@
|
|||
'standalone_static_library': '<(standalone_static_library)'
|
||||
}],
|
||||
|
||||
['_type!="executable"', {
|
||||
'conditions': [
|
||||
[ 'OS=="android"', {
|
||||
'cflags!': [ '-fPIE' ],
|
||||
}]
|
||||
]
|
||||
}],
|
||||
|
||||
['_win_delay_load_hook=="true"', {
|
||||
# If the addon specifies `'win_delay_load_hook': 'true'` in its
|
||||
# binding.gyp, link a delay-load hook into the DLL. This hook ensures
|
||||
|
@ -138,10 +146,10 @@
|
|||
'_FILE_OFFSET_BITS=64'
|
||||
],
|
||||
}],
|
||||
[ 'OS in "freebsd openbsd netbsd solaris" or \
|
||||
[ 'OS in "freebsd openbsd netbsd solaris android" or \
|
||||
(OS=="linux" and target_arch!="ia32")', {
|
||||
'cflags': [ '-fPIC' ],
|
||||
}]
|
||||
}],
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue