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

Commit

Permalink
Hide symbols on mac with -fvisibility=hidden (#688)
Browse files Browse the repository at this point in the history
Ref #686, #687.
  • Loading branch information
vweevers authored Oct 21, 2019
1 parent ebf1ef1 commit b263d80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"cflags": [],
"cflags!": [ "-fno-tree-vrp"]
}],
["OS == 'mac'", {
"cflags+": ["-fvisibility=hidden"],
"xcode_settings": {
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES" # -fvisibility=hidden
}
}],
["OS == 'android'", {
"cflags": [ "-fPIC" ],
"ldflags": [ "-fPIC" ],
Expand Down

0 comments on commit b263d80

Please sign in to comment.