Strip dead code when linking by default with BFD ld (linux, ...) and ld64 (os x).
[oota-llvm.git] / tools / llvm-shlib / Makefile
index 92f3132ff5393f23e60fea287376c4f82296c87b..317da517202df73c89ef1b342e8a10e9f40dc703 100644 (file)
@@ -49,9 +49,6 @@ ifeq ($(HOST_OS),Darwin)
     endif
     # Include everything from the .a's into the shared library.
     LLVMLibsOptions    := $(LLVMLibsOptions) -all_load
-    # extra options to override libtool defaults 
-    LLVMLibsOptions    := $(LLVMLibsOptions)  \
-                         -Wl,-dead_strip
 
     # Mac OS X 10.4 and earlier tools do not allow a second -install_name on command line
     DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')