add -fvisibility=hidden for gcc

This commit is contained in:
nillerusr 2022-09-05 19:33:23 +03:00
parent 3e19d26a72
commit efc1fc2a9b

View File

@ -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': {