From 2ebe0277d4df54c2a4366d24eaea758021d3f0f8 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 12 May 2010 22:48:32 +0100 Subject: scons: Add -fvisibility=hidden to CFLAGS for gcc builds --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = [ -- cgit v1.2.3