Strip dead code when linking by default with BFD ld (linux, ...) and ld64 (os x).
[oota-llvm.git] / tools / opt / Makefile
index 2f184a679b37e55e84fa7259da5694b2f3fff3de..fa2d0145531953b9aae244fba226c2140bc51411 100644 (file)
@@ -6,10 +6,12 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
-LEVEL = ../..
-TOOLNAME = opt
-CXXFLAGS = -fno-rtti
 
-LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo
+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