summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2010-05-12 22:48:32 +0100
committerJakob Bornecrantz <jakob@vmware.com>2010-05-12 22:49:32 +0100
commit2ebe0277d4df54c2a4366d24eaea758021d3f0f8 (patch)
treecae20a74b66a1a47a7069eebf202ae507274eca6 /SConstruct
parent0f9b4969167c62fcac70f98875828150ba72dd67 (diff)
downloadexternal_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--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 7433699..28ed6ea 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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 = [