summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-03-03 04:55:15 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-03-03 04:55:15 +0000
commit1dace48f538d44156cdb71834e718b9ad93d2711 (patch)
tree270b2b7ef2babda8ccbf13637aa59a4b9ed2d0d9 /Makefile.rules
parent1c08c0e128e3c672dfbf04ce3bfa1c126c6198da (diff)
downloadllvm-1dace48f538d44156cdb71834e718b9ad93d2711.tar.gz
llvm-1dace48f538d44156cdb71834e718b9ad93d2711.tar.bz2
llvm-1dace48f538d44156cdb71834e718b9ad93d2711.tar.xz
Switch to using -Wl,-R on Solaris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 21403e0be1..1dc329d046 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -428,7 +428,7 @@ ifdef LOADABLE_MODULE
endif
ifdef SHARED_LIBRARY
- LD.Flags += -Wl,-rpath -Wl,$(LibDir)
+ LD.Flags += $(RPATH) -Wl,$(LibDir)
endif
ifdef TOOL_VERBOSE
@@ -458,9 +458,9 @@ endif
ifneq ($(OS),Darwin)
ifdef TOOLNAME
ifdef EXAMPLE_TOOL
- LD.Flags += -Wl,-rpath -Wl,$(ExmplDir) -export-dynamic
+ LD.Flags += $(RPATH) -Wl,$(ExmplDir) -export-dynamic
else
- LD.Flags += -Wl,-rpath -Wl,$(ToolDir) -export-dynamic
+ LD.Flags += $(RPATH) -Wl,$(ToolDir) -export-dynamic
endif
endif
endif