summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/gccld/Makefile7
-rw-r--r--tools/llvm-ar/Makefile7
2 files changed, 10 insertions, 4 deletions
diff --git a/tools/gccld/Makefile b/tools/gccld/Makefile
index 2915c6b056..0ecc9e15d1 100644
--- a/tools/gccld/Makefile
+++ b/tools/gccld/Makefile
@@ -10,8 +10,9 @@
LEVEL = ../..
TOOLNAME = gccld
-USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a LLVMipa.a \
- LLVMTransformUtils.a LLVMTarget.a LLVMBCReader LLVMBCWriter LLVMCore \
- LLVMSupport.a LLVMSystem.a
+USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
+ LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
+ LLVMArchive.a LLVMBCReader LLVMBCWriter \
+ LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/tools/llvm-ar/Makefile b/tools/llvm-ar/Makefile
index 938f73ef11..36968b3cc2 100644
--- a/tools/llvm-ar/Makefile
+++ b/tools/llvm-ar/Makefile
@@ -9,6 +9,11 @@
LEVEL = ../..
TOOLNAME = llvm-ar
-USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
+USEDLIBS = LLVMArchive.a LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
+
+check-local::
+ $(ToolDir)/llvm-ar zRrS nada.a .
+ $(ToolDir)/llvm-ar tv nada.a | grep Debug/llvm-ar.d >/dev/null 2>&1
+ $(RM) -f nada.a