diff --git a/Makefile.rules b/Makefile.rules index 9e77efb8cb0..12582f6f91d 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -632,7 +632,12 @@ ifdef TOOLNAME endif endif endif +else +ifneq ($(DARWIN_MAJVERS),4) + LD.Flags += $(RPATH) -Wl,@executable_path/../lib endif +endif + #---------------------------------------------------------- # Options To Invoke Tools