add -fvisibility=hidden for gcc
This commit is contained in:
parent
f3bdff8a34
commit
19ce9493dd
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ LINKFLAGS = {
|
|||
'common': {
|
||||
'msvc': ['/DEBUG'], # always create PDB, doesn't affect result binaries
|
||||
'gcc': ['-Wl,--no-undefined'],
|
||||
'owcc': ['-Wl,option stack=512k']
|
||||
'owcc': ['-Wl,option stack=512k', '-fvisibility=hidden']
|
||||
},
|
||||
'sanitize': {
|
||||
'clang': ['-fsanitize=undefined', '-fsanitize=address'],
|
||||
|
@ -49,7 +49,7 @@ CFLAGS = {
|
|||
# disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP
|
||||
'msvc': ['/D_USING_V110_SDK71_', '/Zi', '/FS', '/Zc:threadSafeInit-'],
|
||||
'clang': ['-g0', '-fno-strict-aliasing'],
|
||||
'gcc': ['-g0', '-fno-strict-aliasing'],
|
||||
'gcc': ['-g0', '-fno-strict-aliasing', '-fvisibility=hidden'],
|
||||
'owcc': ['-fno-short-enum', '-ffloat-store', '-g0']
|
||||
},
|
||||
'fast': {
|
||||
|
|
Loading…
Reference in a new issue