summaryrefslogtreecommitdiff
path: root/rules/distdir-way-opts.mk
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2014-01-07 01:06:10 -0600
committerAustin Seipp <austin@well-typed.com>2014-01-07 01:06:10 -0600
commit26fcbd0a40c7bfa785baf4d1ad119ddb3abf05e7 (patch)
tree337af610eb0261a45597ad6ef1b0b5fc83b3c3af /rules/distdir-way-opts.mk
parentbb63e83ae279a1e410bdb3dc6d28943e8e024d07 (diff)
downloadhaskell-26fcbd0a40c7bfa785baf4d1ad119ddb3abf05e7.tar.gz
Fix specification of -z origin for gold.
Gold apparently doesn't recognize `-z origin`, only `-zorigin` it seems. Authored-by: Ben Gamari <bgamari.foss@gmail.com> Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'rules/distdir-way-opts.mk')
-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 a6b7f573b0..a4f525e896 100644
--- a/rules/distdir-way-opts.mk
+++ b/rules/distdir-way-opts.mk
@@ -136,7 +136,7 @@ ifneq "$4" "0"
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
+ $$(foreach d,$$($1_$2_TRANSITIVE_DEPS),-optl-Wl$$(comma)-rpath -optl-Wl$$(comma)'$$$$ORIGIN/../$$d') -optl-Wl,-zorigin
else ifeq "$$(TargetOS_CPP)" "darwin"
$1_$2_$3_GHC_LD_OPTS += -optl-Wl,-headerpad_max_install_names
endif