Skip to content

Commit

Permalink
Hide symbols on mac with -fvisibility=hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Nov 4, 2019
1 parent 949afd2 commit 59fee3a
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,24 @@
, 'cflags_cc+': [ '-frtti' ]
}]
, ["OS == 'mac'", {
"cflags+": ["-fvisibility=hidden"],
'xcode_settings': {
'WARNING_CFLAGS': [
'-Wno-sign-compare'
, '-Wno-unused-variable'
, '-Wno-unused-function'
, '-Wno-ignored-qualifiers'
]
, 'OTHER_CPLUSPLUSFLAGS': [
'-mmacosx-version-min=10.8'
, '-std=c++11'
, '-stdlib=libc++'
]
, 'OTHER_LDFLAGS': ['-stdlib=libc++']
, 'GCC_ENABLE_CPP_RTTI': 'YES'
, 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
, 'MACOSX_DEPLOYMENT_TARGET': '10.8'
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES" # -fvisibility=hidden
, 'WARNING_CFLAGS': [
'-Wno-sign-compare'
, '-Wno-unused-variable'
, '-Wno-unused-function'
, '-Wno-ignored-qualifiers'
]
, 'OTHER_CPLUSPLUSFLAGS': [
'-mmacosx-version-min=10.8'
, '-std=c++11'
, '-stdlib=libc++'
]
, 'OTHER_LDFLAGS': ['-stdlib=libc++']
, 'GCC_ENABLE_CPP_RTTI': 'YES'
, 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
, 'MACOSX_DEPLOYMENT_TARGET': '10.8'
}
}]
, ['OS == "linux"', {
Expand Down

0 comments on commit 59fee3a

Please sign in to comment.