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',
|
'_SVID_SOURCE',
|
||||||
'_BSD_SOURCE',
|
'_BSD_SOURCE',
|
||||||
'_GNU_SOURCE',
|
'_GNU_SOURCE',
|
||||||
|
|
||||||
'PTHREADS',
|
'PTHREADS',
|
||||||
'HAVE_POSIX_MEMALIGN',
|
'HAVE_POSIX_MEMALIGN',
|
||||||
])
|
])
|
||||||
|
if gcc:
|
||||||
|
env.Append(CFLAGS = ['-fvisibility=hidden'])
|
||||||
if platform == 'darwin':
|
if platform == 'darwin':
|
||||||
env.Append(CPPDEFINES = ['_DARWIN_C_SOURCE'])
|
env.Append(CPPDEFINES = ['_DARWIN_C_SOURCE'])
|
||||||
env.Append(LIBS = [
|
env.Append(LIBS = [
|
||||||
|
|
Loading…
Reference in New Issue