mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 14:16:50 +00:00
add -fvisibility=hidden for gcc
This commit is contained in:
parent
3e19d26a72
commit
efc1fc2a9b
@ -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 New Issue
Block a user