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 6c2ba94 commit 00b02f2Copy full SHA for 00b02f2
binding.gyp
@@ -18,9 +18,18 @@
18
},
19
}],
20
['OS=="mac"', {
21
+ # OSX symbols are exported by default
22
+ # if 2 different copies of the same symbol appear in a process
23
+ # it can cause a conflict
24
+ # this prevents exporting the symbols
25
+ # the `+` prepends these flags
26
+ 'cflags+': [ '-fvisibility=hidden' ],
27
+ 'cflags_cc+': [ '-fvisibility=hidden' ],
28
'xcode_settings': {
29
# Minimum mac osx target version (matches node v16.14.2)
30
'MACOSX_DEPLOYMENT_TARGET': '10.13',
31
+ # This is also needed to prevent exporting of symbols
32
+ 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
33
'OTHER_CFLAGS': [
34
'-std=c99',
35
'-arch x86_64',
0 commit comments