projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f9b496
)
scons: Add -fvisibility=hidden to CFLAGS for gcc builds
author
Jakob Bornecrantz
<jakob@vmware.com>
Wed, 12 May 2010 21:48:32 +0000
(22:48 +0100)
committer
Jakob Bornecrantz
<jakob@vmware.com>
Wed, 12 May 2010 21:49:32 +0000
(22:49 +0100)
SConstruct
patch
|
blob
|
history
diff --git
a/SConstruct
b/SConstruct
index 74336992baac8c39950e8703ce5f15456744c0bb..28ed6ea78c0db95d1ed09cde3a1e47331b8c3d63 100644
(file)
--- 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 = [