diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-07-30 14:54:36 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-07-31 11:52:01 +0400 |
commit | 9f36c0d235f4eb7e6528face49c15045a5e41e14 (patch) | |
tree | 82ba6b903aaeb605cb07df89ce35c18d53341273 | |
parent | 38f6fcd822103f7e896532239c60c47b8fcc7d22 (diff) | |
download | node-new-9f36c0d235f4eb7e6528face49c15045a5e41e14.tar.gz |
gyp: do not rm unused openssl syms on osx/linux
fix #8026
Reviewed-By: Fedor Indutny <fedor@indutny.com>
-rw-r--r-- | node.gyp | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -155,6 +155,19 @@ # For tests './deps/openssl/openssl.gyp:openssl-cli', ], + # Do not let unused OpenSSL symbols to slip away + 'xcode_settings': { + 'OTHER_LDFLAGS': [ + '-Wl,-force_load,<(PRODUCT_DIR)/libopenssl.a', + ], + }, + 'conditions': [ + ['OS=="linux"', { + 'ldflags': [ + '-Wl,--whole-archive <(PRODUCT_DIR)/libopenssl.a -Wl,--no-whole-archive', + ], + }], + ], }]] }, { 'defines': [ 'HAVE_OPENSSL=0' ] |