Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
gyp: do not rm unused openssl syms on osx/linux
Browse files Browse the repository at this point in the history
fix #8026

Reviewed-By: Fedor Indutny <[email protected]>
  • Loading branch information
indutny committed Jul 31, 2014
1 parent 38f6fcd commit 9f36c0d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]
Expand Down

0 comments on commit 9f36c0d

Please sign in to comment.