OSDN Git Service

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 7433699..28ed6ea 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 = [