diff options
author | Jakob Bornecrantz <[email protected]> | 2010-05-12 22:48:32 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-05-12 22:49:32 +0100 |
commit | 2ebe0277d4df54c2a4366d24eaea758021d3f0f8 (patch) | |
tree | cae20a74b66a1a47a7069eebf202ae507274eca6 | |
parent | 0f9b4969167c62fcac70f98875828150ba72dd67 (diff) |
scons: Add -fvisibility=hidden to CFLAGS for gcc builds
-rw-r--r-- | SConstruct | 3 |
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 = [ |