From: Cheng Zhao Date: Fri, 10 Apr 2015 09:56:46 +0000 (+0800) Subject: Hide symbols of openssl X-Git-Tag: v0.23.0~5^2~6 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=88b6a60c29075333092dcfa63535ac61195f47f0;p=electron.git Hide symbols of openssl So we will avoid conflicts with boringssl. --- diff --git a/common.gypi b/common.gypi index dd0b9585..847c4bb3 100644 --- a/common.gypi +++ b/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"', {