We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38f6fcd commit 9f36c0dCopy full SHA for 9f36c0d
1 file changed
node.gyp
@@ -155,6 +155,19 @@
155
# For tests
156
'./deps/openssl/openssl.gyp:openssl-cli',
157
],
158
+ # Do not let unused OpenSSL symbols to slip away
159
+ 'xcode_settings': {
160
+ 'OTHER_LDFLAGS': [
161
+ '-Wl,-force_load,<(PRODUCT_DIR)/libopenssl.a',
162
+ ],
163
+ },
164
+ 'conditions': [
165
+ ['OS=="linux"', {
166
+ 'ldflags': [
167
+ '-Wl,--whole-archive <(PRODUCT_DIR)/libopenssl.a -Wl,--no-whole-archive',
168
169
+ }],
170
171
}]]
172
}, {
173
'defines': [ 'HAVE_OPENSSL=0' ]
0 commit comments