summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2014-07-30 14:54:36 +0400
committerFedor Indutny <fedor@indutny.com>2014-07-31 11:52:01 +0400
commit9f36c0d235f4eb7e6528face49c15045a5e41e14 (patch)
tree82ba6b903aaeb605cb07df89ce35c18d53341273
parent38f6fcd822103f7e896532239c60c47b8fcc7d22 (diff)
downloadnode-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.gyp13
1 files changed, 13 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 348040e03..33c4f0e0b 100644
--- a/node.gyp
+++ b/node.gyp
@@ -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' ]