Skip to content

Commit

Permalink
gyp: do not rm unused openssl syms on osx/linux
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Jul 30, 2014
1 parent 38f6fcd commit 9fa4e6e
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 9fa4e6e

Please sign in to comment.