Use LINK_COMPONENTS instead of hard coding LLVM libraries.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58076 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/Makefile b/Driver/Makefile
index e7c5ee8..22d7ffb 100644
--- a/Driver/Makefile
+++ b/Driver/Makefile
@@ -8,12 +8,9 @@
# early so we can set up LINK_COMPONENTS before including Makefile.rules
include $(LEVEL)/Makefile.config
-LINK_COMPONENTS := $(TARGETS_TO_BUILD)
+LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen ipo selectiondag
USEDLIBS = clangCodeGen.a clangAnalysis.a clangRewrite.a clangSema.a \
clangDriver.a clangAST.a clangParse.a clangLex.a \
- clangBasic.a LLVMCore.a LLVMSupport.a LLVMSystem.a \
- LLVMBitWriter.a LLVMBitReader.a LLVMSelectionDAG.a \
- LLVMCodeGen.a LLVMTransformUtils.a LLVMScalarOpts.a \
- LLVMAnalysis.a LLVMTarget.a LLVMipo.a
+ clangBasic.a
include $(LLVM_SRC_ROOT)/Makefile.rules