commit | a89efd537d0b518b089e0a1dd6cecd9b7693c649 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Sun May 16 03:05:14 2010 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Sun May 16 03:05:14 2010 +0000 |
tree | 1a2e40c10459992cb6d36aa28ad9e39a5904a383 | |
parent | 8d908ebd1926d00ff47d8284e52657705efb7f9b [diff] |
Use $ORIGIN in the rpath of libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103896 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Makefile.rules b/Makefile.rules index d77fe27..2fc5eeb 100644 --- a/Makefile.rules +++ b/Makefile.rules
@@ -589,10 +589,14 @@ endif ifdef SHARED_LIBRARY +ifneq ($(HOST_OS),Darwin) + LD.Flags += $(RPATH) -Wl,'$$ORIGIN' +else ifneq ($(DARWIN_MAJVERS),4) LD.Flags += $(RPATH) -Wl,$(LibDir) endif endif +endif ifdef TOOL_VERBOSE C.Flags += -v