Module: Mesa
Branch: master
Commit: 2ebe0277d4df54c2a4366d24eaea758021d3f0f8
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2ebe0277d4df54c2a4366d24eaea758021d3f0f8

Author: Jakob Bornecrantz <[email protected]>
Date:   Wed May 12 22:48:32 2010 +0100

scons: Add -fvisibility=hidden to CFLAGS for gcc builds

---

 SConstruct |    3 ++-
 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 = [

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to