Strip dead code when linking by default with BFD ld (linux, ...) and ld64 (os x).
[oota-llvm.git] / tools / opt / Makefile
index a451005574a55b591a0aeb04799ebcd86d635e5d..fa2d0145531953b9aae244fba226c2140bc51411 100644 (file)
@@ -11,4 +11,7 @@ LEVEL := ../..
 TOOLNAME := opt
 LINK_COMPONENTS := bitreader bitwriter asmparser irreader instrumentation scalaropts objcarcopts ipo vectorize all-targets
 
+# Support plugins.
+NO_DEAD_STRIP := 1
+
 include $(LEVEL)/Makefile.common