From fd417e11e34751fdea284fa09e2bbeec661dcf22 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Wed, 30 Jul 2014 14:41:16 +0400 Subject: [PATCH] gyp: do not remove unused openssl syms on osx fix #8026 --- node.gyp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/node.gyp b/node.gyp index 348040e03dd3..376e598a0fce 100644 --- a/node.gyp +++ b/node.gyp @@ -155,6 +155,12 @@ # 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', + ], + }, }]] }, { 'defines': [ 'HAVE_OPENSSL=0' ]