mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
This patch enables "make unittests" on enable-shared/mingw.
Patch by Takumi Nakamura! llvm-svn: 111270
This commit is contained in:
parent
e8b4df4143
commit
16dd681b0e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user