scons: Add -fvisibility=hidden to CFLAGS for gcc builds
This commit is contained in:
parent
0f9b496916
commit
2ebe0277d4
|
@ -153,10 +153,11 @@ if platform in ('posix', 'linux', 'freebsd', 'darwin'):
|
|||
'_SVID_SOURCE',
|
||||
'_BSD_SOURCE',
|
||||
'_GNU_SOURCE',
|
||||
|
||||
'PTHREADS',
|
||||
'HAVE_POSIX_MEMALIGN',
|
||||
])
|
||||
if gcc:
|
||||
env.Append(CFLAGS = ['-fvisibility=hidden'])
|
||||
if platform == 'darwin':
|
||||
env.Append(CPPDEFINES = ['_DARWIN_C_SOURCE'])
|
||||
env.Append(LIBS = [
|
||||
|
|
Loading…
Reference in New Issue