summaryrefslogtreecommitdiff
path: root/iserv
diff options
context:
space:
mode:
authorKarel Gardas <karel.gardas@centrum.cz>2016-10-18 21:47:35 +0200
committerKarel Gardas <karel.gardas@centrum.cz>2016-10-18 21:48:04 +0200
commitfa8940e80138fed457e8903d59e2cd011741fa29 (patch)
tree2a2d6b388f024482a18246cdf0ab995695cdc3ba /iserv
parent161f463045668055b6f31a276498931ddfb3807f (diff)
downloadhaskell-fa8940e80138fed457e8903d59e2cd011741fa29.tar.gz
fix build failure on Solaris caused by usage of --export-dynamic
Summary: This patch fixes build failure on Solaris which is caused by usage --export-dynamic linker parameter. This parameter is not supported by Solaris linker. The param itself was added by D2590 Reviewers: bgamari, simonmar, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2606
Diffstat (limited to 'iserv')
-rw-r--r--iserv/ghc.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/iserv/ghc.mk b/iserv/ghc.mk
index cab432a3d6..8497313945 100644
--- a/iserv/ghc.mk
+++ b/iserv/ghc.mk
@@ -29,10 +29,14 @@ iserv_stage2_dyn_MORE_HC_OPTS += -threaded
# of overhead to startup and increases the binary sizes) but if you
# need it there's no alternative.
ifeq "$(TargetElf)" "YES"
+ifneq "$(TargetOS_CPP)" "solaris2"
+# The Solaris linker does not support --export-dynamic option. It also
+# does not need it since it exports all dynamic symbols by default
iserv_stage2_MORE_HC_OPTS += -optl-Wl,--export-dynamic
iserv_stage2_p_MORE_HC_OPTS += -optl-Wl,--export-dynamic
iserv_stage2_dyn_MORE_HC_OPTS += -optl-Wl,--export-dynamic
endif
+endif
# Override the default way, because we want a specific version of this
# program for each way. Note that it's important to do this even for