summaryrefslogtreecommitdiff
path: root/unittests/Makefile.unittest
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-10-02 19:52:33 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-10-02 19:52:33 +0000
commite2b208a5e1dfece2462f595dec2d8f8ff3c1b98f (patch)
tree238af3d15f978e94ed6a8e5b14b0a421e9069e97 /unittests/Makefile.unittest
parent7d26948662d222be28bd6be509c40f8aff954da5 (diff)
downloadllvm-e2b208a5e1dfece2462f595dec2d8f8ff3c1b98f.tar.gz
llvm-e2b208a5e1dfece2462f595dec2d8f8ff3c1b98f.tar.bz2
llvm-e2b208a5e1dfece2462f595dec2d8f8ff3c1b98f.tar.xz
Try to fix unit test linking on linux ...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Makefile.unittest')
-rw-r--r--unittests/Makefile.unittest4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/Makefile.unittest b/unittests/Makefile.unittest
index e09c08f208..76051e497c 100644
--- a/unittests/Makefile.unittest
+++ b/unittests/Makefile.unittest
@@ -20,12 +20,12 @@ LLVMUnitTestExe = $(BuildMode)/$(TESTNAME)Tests$(EXEEXT)
CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include/
CPP.Flags += -Wno-variadic-macros
-LIBS += -lGoogleTest -lUnitTestMain
+TESTLIBS = -lGoogleTest -lUnitTestMain
$(LLVMUnitTestExe): $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths)
$(Echo) Linking $(BuildMode) unit test $(TESTNAME) $(StripWarnMsg)
$(Verb) $(Link) -o $@ $(TOOLLINKOPTS) $(ObjectsO) $(ProjLibsOptions) \
- $(LLVMLibsOptions) $(ExtraLibs) $(TOOLLINKOPTSB) $(LIBS)
+ $(TESTLIBS) $(LLVMLibsOptions) $(ExtraLibs) $(TOOLLINKOPTSB) $(LIBS)
$(Echo) ======= Finished Linking $(BuildMode) Unit test $(TESTNAME) \
$(StripWarnMsg)