Strip dead code when linking by default with BFD ld (linux, ...) and ld64 (os x).
[oota-llvm.git] / tools / opt / Makefile
index a4c11102019102988fd9962bca58df408cd2e3a1..fa2d0145531953b9aae244fba226c2140bc51411 100644 (file)
@@ -1,6 +1,17 @@
-LEVEL = ../..
-TOOLNAME = opt
-USEDLIBS = opt bcreader bcwriter asmwriter analysis vmcore support instrument transforms scalaropts ipo target analysis
+##===- tools/opt/Makefile ----------------------------------*- Makefile -*-===##
+#
+#                     The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
 
-include $(LEVEL)/Makefile.common
+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