This patch enables "make unittests" on enable-shared/mingw.
authorAnton Korobeynikov <asl@math.spbu.ru>
Tue, 17 Aug 2010 19:34:40 +0000 (19:34 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Tue, 17 Aug 2010 19:34:40 +0000 (19:34 +0000)
Patch by Takumi Nakamura!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111270 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Makefile.unittest

index 2a701a019d8b052c3b78b8d74243ee9a0fcf24e2..9a75b2c2eb8fd55ef06f192b547000ce63787f1c 100644 (file)
@@ -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)