summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-04-27 00:28:31 +0100
committerIan Lynagh <ian@well-typed.com>2013-04-27 00:28:43 +0100
commitce1094ea87e58f5172f623c61cbb250a3194e0b0 (patch)
treedfff3df5a5c4556b7e7c8b9ee4828048a98d9a6e /rules
parent9843083601adb7db03844aecd9a855b0d06609a7 (diff)
downloadhaskell-ce1094ea87e58f5172f623c61cbb250a3194e0b0.tar.gz
Use -rpath flags on all Elf OSes, not just Linux
Patch from pgj; part of #7819.
Diffstat (limited to 'rules')
-rw-r--r--rules/distdir-way-opts.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/distdir-way-opts.mk b/rules/distdir-way-opts.mk
index c78723dacb..acf68823e4 100644
--- a/rules/distdir-way-opts.mk
+++ b/rules/distdir-way-opts.mk
@@ -125,7 +125,7 @@ $1_$2_$3_ALL_HC_OPTS = \
ifeq "$3" "dyn"
ifneq "$4" "0"
-ifeq "$$(TargetOS_CPP)" "linux"
+ifeq "$$(TargetElf)" "YES"
$1_$2_$3_GHC_LD_OPTS += \
-fno-use-rpaths \
$$(foreach d,$$($1_$2_TRANSITIVE_DEPS),-optl-Wl$$(comma)-rpath -optl-Wl$$(comma)'$$$$ORIGIN/../$$d') -optl-Wl,-z -optl-Wl,origin