Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--node.gyp13
1 files changed, 13 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 348040e03dd..33c4f0e0bbf 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' ]