summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SConstruct3
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 = [