diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2010-05-12 22:48:32 +0100 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2010-05-12 22:49:32 +0100 |
commit | 2ebe0277d4df54c2a4366d24eaea758021d3f0f8 (patch) | |
tree | cae20a74b66a1a47a7069eebf202ae507274eca6 /SConstruct | |
parent | 0f9b4969167c62fcac70f98875828150ba72dd67 (diff) | |
download | external_mesa3d-2ebe0277d4df54c2a4366d24eaea758021d3f0f8.zip external_mesa3d-2ebe0277d4df54c2a4366d24eaea758021d3f0f8.tar.gz external_mesa3d-2ebe0277d4df54c2a4366d24eaea758021d3f0f8.tar.bz2 |
scons: Add -fvisibility=hidden to CFLAGS for gcc builds
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 = [ |