summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Makefile.unittest
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2010-11-26 09:32:02 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2010-11-26 09:32:02 +0000
commit98fa0159fcc6d8b4c7f61ab727b9e110863b35fc (patch)
tree632b5225918669692968b41b9688bb3b35ae8f3c /llvm/unittests/Makefile.unittest
parente1e8565cd97ea80adebb9cfcc1f01979ae43c643 (diff)
downloadbcm5719-llvm-98fa0159fcc6d8b4c7f61ab727b9e110863b35fc.tar.gz
bcm5719-llvm-98fa0159fcc6d8b4c7f61ab727b9e110863b35fc.zip
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
Diffstat (limited to 'llvm/unittests/Makefile.unittest')
-rw-r--r--llvm/unittests/Makefile.unittest8
1 files changed, 5 insertions, 3 deletions
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)"
OpenPOWER on IntegriCloud