Hide symbols of openssl
So we will avoid conflicts with boringssl.
This commit is contained in:
parent
a13343800a
commit
88b6a60c29
1 changed files with 16 additions and 0 deletions
16
common.gypi
16
common.gypi
|
@ -141,6 +141,22 @@
|
|||
}],
|
||||
],
|
||||
}],
|
||||
['_target_name=="openssl"', {
|
||||
'xcode_settings': {
|
||||
'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip
|
||||
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
|
||||
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
|
||||
},
|
||||
'cflags': [
|
||||
'-fvisibility=hidden',
|
||||
'-fdata-sections',
|
||||
'-ffunction-sections',
|
||||
],
|
||||
'ldflags': [
|
||||
'-Wl,--as-needed',
|
||||
'-Wl,--gc-sections',
|
||||
],
|
||||
}],
|
||||
['_target_name=="libuv"', {
|
||||
'conditions': [
|
||||
['OS=="win"', {
|
||||
|
|
Loading…
Reference in a new issue