Use LINK_COMPONENTS to specify *components* to link against instead of
using USED_LIBS to specify *libraries* to link against.
llvm-svn: 30090
diff --git a/llvm/tools/llvm2cpp/Makefile b/llvm/tools/llvm2cpp/Makefile
index cc3169c..88db590 100644
--- a/llvm/tools/llvm2cpp/Makefile
+++ b/llvm/tools/llvm2cpp/Makefile
@@ -8,10 +8,9 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm2cpp
-USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS = bcreader
REQUIRES_EH := 1
include $(LEVEL)/Makefile.common
CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
-CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))