summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp13
1 files changed, 13 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index f8d4ba18a6..c6aebf473d 100644
--- a/node.gyp
+++ b/node.gyp
@@ -184,6 +184,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' ]