Enable -fvisibility=hidden on Linux.

This will prevent further symbol clashes, and makes the shared libraries
 10 to 20 percent smaller.

We should enable this on other platforms, too, if we can guarantee they'll
 use gcc 4.0 or later and the platform supports it.
This commit is contained in:
Ryan C. Gordon committed 2009-09-15 02:48:17 +00:00
1 parent 70dad387da
commit e2d63b1fea
9 files changed
+18 -8

No files matched your search

+1 -1
View File
@@ -304,7 +304,7 @@ ifeq ($(PLATFORM),linux)
endif
SHLIBEXT=so
SHLIBCFLAGS=-fPIC
SHLIBCFLAGS=-fPIC -fvisibility=hidden
SHLIBLDFLAGS=-shared $(LDFLAGS)
THREAD_LIBS=-lpthread