summaryrefslogtreecommitdiff
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)
downloadmesa-2ebe0277d4df54c2a4366d24eaea758021d3f0f8.tar.gz
mesa-2ebe0277d4df54c2a4366d24eaea758021d3f0f8.tar.bz2
mesa-2ebe0277d4df54c2a4366d24eaea758021d3f0f8.zip
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 74336992baa..28ed6ea78c0 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 = [