From 98fa0159fcc6d8b4c7f61ab727b9e110863b35fc Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 26 Nov 2010 09:32:02 +0000 Subject: unittests/JITTests: Don't use --export-dynamic but --export-all-symbols on cygming. GNU ld/PECOFF accepts but ignores them below; --version-script --export-dynamic --rpath FIXME: autoconf should be aware of them. llvm-svn: 120179 --- llvm/unittests/Makefile.unittest | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'llvm/unittests/Makefile.unittest') diff --git a/llvm/unittests/Makefile.unittest b/llvm/unittests/Makefile.unittest index 9a75b2c2eb8..8be6174cb90 100644 --- a/llvm/unittests/Makefile.unittest +++ b/llvm/unittests/Makefile.unittest @@ -35,9 +35,11 @@ endif 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,$(SharedLibDir) + ifneq (,$(RPATH)) + # Add the absolute path to the dynamic library. This is ok because + # we'll never install unittests. + LD.Flags += $(RPATH) -Wl,$(SharedLibDir) + endif # Also set {DYLD,LD}_LIBRARY_PATH because OSX ignores the rpath most # of the time. Run.Shared := $(SHLIBPATH_VAR)="$(SharedLibDir)$${$(SHLIBPATH_VAR):+:}$$$(SHLIBPATH_VAR)" -- cgit v1.2.3