projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Correctly set rpath on Mac OS X for executable tools. Note that I am not certain...
[oota-llvm.git]
/
Makefile.rules
diff --git
a/Makefile.rules
b/Makefile.rules
index 9e77efb8cb0866203dd2aa461674ed3f672b0d6a..12582f6f91d2b741361708e93cd14b2048b05592 100644
(file)
--- 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