aboutsummaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-08-17 19:34:40 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-08-17 19:34:40 +0000
commit462aaeb17857ac5bd3bba086a6d1c08f23b5a797 (patch)
treeb5ec8f623f35618bbc689f453dfbf0d6fc899f3a /unittests
parent59a430f68f962464f0564b51741e2aea148c617c (diff)
downloadexternal_llvm-462aaeb17857ac5bd3bba086a6d1c08f23b5a797.zip
external_llvm-462aaeb17857ac5bd3bba086a6d1c08f23b5a797.tar.gz
external_llvm-462aaeb17857ac5bd3bba086a6d1c08f23b5a797.tar.bz2
This patch enables "make unittests" on enable-shared/mingw.
Patch by Takumi Nakamura! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Makefile.unittest4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/Makefile.unittest b/unittests/Makefile.unittest
index 2a701a0..9a75b2c 100644
--- a/unittests/Makefile.unittest
+++ b/unittests/Makefile.unittest
@@ -37,10 +37,10 @@ TESTLIBS = -lGoogleTest -lUnitTestMain
ifeq ($(ENABLE_SHARED), 1)
# Add the absolute path to the dynamic library. This is ok because
# we'll never install unittests.
- LD.Flags += $(RPATH) -Wl,$(LibDir)
+ LD.Flags += $(RPATH) -Wl,$(SharedLibDir)
# Also set {DYLD,LD}_LIBRARY_PATH because OSX ignores the rpath most
# of the time.
- Run.Shared := $(SHLIBPATH_VAR)="$(LibDir)$${$(SHLIBPATH_VAR):+:}$$$(SHLIBPATH_VAR)"
+ Run.Shared := $(SHLIBPATH_VAR)="$(SharedLibDir)$${$(SHLIBPATH_VAR):+:}$$$(SHLIBPATH_VAR)"
endif
$(LLVMUnitTestExe): $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths)