diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-11-26 09:32:02 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-11-26 09:32:02 +0000 |
commit | 98fa0159fcc6d8b4c7f61ab727b9e110863b35fc (patch) | |
tree | 632b5225918669692968b41b9688bb3b35ae8f3c /llvm/unittests/Makefile.unittest | |
parent | e1e8565cd97ea80adebb9cfcc1f01979ae43c643 (diff) | |
download | bcm5719-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.unittest | 8 |
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)" |