Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Commit 0969552

Browse files
committed
Try out -fvisibility=hidden for mac
Ref #686, #687.
1 parent ebf1ef1 commit 0969552

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

binding.gyp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
"cflags": [],
2020
"cflags!": [ "-fno-tree-vrp"]
2121
}],
22+
["OS == 'mac'", {
23+
"cflags+": ["-fvisibility=hidden"],
24+
"xcode_settings": {
25+
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES" # -fvisibility=hidden
26+
}
27+
}],
2228
["OS == 'android'", {
2329
"cflags": [ "-fPIC" ],
2430
"ldflags": [ "-fPIC" ],

0 commit comments

Comments
 (0)