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

Commit

Permalink
Hide symbols on mac with -fvisibility=hidden (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers authored Nov 9, 2019
1 parent 9270b7a commit e2e09c9
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 e2e09c9

Please sign in to comment.