aboutsummaryrefslogtreecommitdiff
path: root/test/Makefile.tests
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2004-01-16 21:53:23 +0000
committerJohn Criswell <criswell@uiuc.edu>2004-01-16 21:53:23 +0000
commit1119d7d39442595d2609bfdcfa4cce76a47f4ed0 (patch)
tree004dbfc215de1b82ac00cdb80c39d8dcb6b6aa70 /test/Makefile.tests
parentf1dd2004c07126944c9384d25e866215fd93c3bb (diff)
Remove the use of LLVMGCCARCH. Instead, query the compiler for the
location of libgcc.a; that will tell us the name of the directory to find the libraries that we're looking for. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile.tests')
-rw-r--r--test/Makefile.tests5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Makefile.tests b/test/Makefile.tests
index cb6fb666fd..13e62fd4bc 100644
--- a/test/Makefile.tests
+++ b/test/Makefile.tests
@@ -34,11 +34,14 @@ endif
.PRECIOUS: Output/%.llvm.bc
.PRECIOUS: Output/%.llvm
+# Find the location of the platform specific LLVM GCC libraries
+LLVMGCCLIBDIR=$(dir $(shell $(LLVMGCC) -print-file-name=libgcc.a))
+
# LLVM Tool Definitions (LLVMGCC, LLVMGXX, LLVMAS are provided by Makefile.rules)
LLI = $(LLVMTOOLCURRENT)/lli
LLC = $(LLVMTOOLCURRENT)/llc
LGCCAS = $(LLVMTOOLCURRENT)/gccas
-LGCCLD = $(LGCCLDPROG) -L$(LLVMGCCDIR)/lib/gcc/$(LLVMGCCARCH) -L$(LLVMGCCDIR)/lib
+LGCCLD = $(LGCCLDPROG) -L$(LLVMGCCLIBDIR) -L$(LLVMGCCDIR)/lib
LDIS = $(LLVMTOOLCURRENT)/llvm-dis
LOPT = $(LLVMTOOLCURRENT)/opt
LLINK = $(LLVMTOOLCURRENT)/llvm-link