bf2cfe2
diff -up llvm-3.4/tools/llvm-shlib/Makefile.orig llvm-3.4/tools/llvm-shlib/Makefile
bf2cfe2
--- llvm-3.4/tools/llvm-shlib/Makefile.orig	2013-11-01 00:35:00.000000000 +1000
bf2cfe2
+++ llvm-3.4/tools/llvm-shlib/Makefile	2014-01-14 10:13:20.069858909 +1000
bf2cfe2
@@ -75,7 +75,7 @@ endif
be655c4
 
bf2cfe2
 ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD))
be655c4
     # Don't allow unresolved symbols.
be655c4
-    LLVMLibsOptions += -Wl,--no-undefined
be655c4
+    LLVMLibsOptions += -Wl,--no-undefined -Wl,-Bsymbolic
be655c4
 endif
be655c4
 
be655c4
 ifeq ($(HOST_OS),SunOS)