scons: Add -fvisibility=hidden to CFLAGS for gcc builds
diff --git a/SConstruct b/SConstruct
index 7433699..28ed6ea 100644
--- a/SConstruct
+++ b/SConstruct
@@ -153,10 +153,11 @@
 		'_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 = [