From 88b6a60c29075333092dcfa63535ac61195f47f0 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 10 Apr 2015 17:56:46 +0800 Subject: [PATCH] Hide symbols of openssl So we will avoid conflicts with boringssl. --- common.gypi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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"', { -- 2.43.0