From: Jakob Bornecrantz Date: Wed, 12 May 2010 21:48:32 +0000 (+0100) Subject: scons: Add -fvisibility=hidden to CFLAGS for gcc builds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ebe0277d4df54c2a4366d24eaea758021d3f0f8;p=mesa.git scons: Add -fvisibility=hidden to CFLAGS for gcc builds --- 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 = [