scons: Add -fvisibility=hidden to CFLAGS for gcc builds
authorJakob Bornecrantz <jakob@vmware.com>
Wed, 12 May 2010 21:48:32 +0000 (22:48 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 12 May 2010 21:49:32 +0000 (22:49 +0100)
SConstruct

index 74336992baac8c39950e8703ce5f15456744c0bb..28ed6ea78c0db95d1ed09cde3a1e47331b8c3d63 100644 (file)
@@ -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 = [