summaryrefslogtreecommitdiff
blob: 284ab47c805abd4b6c968b7f258501dfa04f9b38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Avoid like in Makefile.rules
ld: -rpath can only be used when targeting Mac OS X 10.5 or later

--- unittests/Makefile.unittest
+++ unittests/Makefile.unittest
@@ -37,7 +37,9 @@
 ifeq ($(ENABLE_SHARED), 1)
   # Add the absolute path to the dynamic library.  This is ok because
   # we'll never install unittests.
+ifneq ($(DARWIN_MAJVERS),4)
   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)"