summaryrefslogtreecommitdiff
path: root/utils/iserv/ghc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'utils/iserv/ghc.mk')
-rw-r--r--utils/iserv/ghc.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/iserv/ghc.mk b/utils/iserv/ghc.mk
index 74f90e60b7..b6a50e4ce1 100644
--- a/utils/iserv/ghc.mk
+++ b/utils/iserv/ghc.mk
@@ -30,8 +30,9 @@ endif
# refer to the RTS. This is harmless if you don't use it (adds a bit
# of overhead to startup and increases the binary sizes) but if you
# need it there's no alternative.
+# Don't do this on FreeBSD to work around #17962.
ifeq "$(TargetElf)" "YES"
-ifneq "$(TargetOS_CPP)" "solaris2"
+ifeq "$(findstring $(TargetOS_CPP), solaris2 freebsd)" ""
# The Solaris linker does not support --export-dynamic option. It also
# does not need it since it exports all dynamic symbols by default
utils/iserv_stage2_MORE_HC_OPTS += -optl-Wl,--export-dynamic