aboutsummaryrefslogtreecommitdiff
path: root/lang/ghc
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2020-08-16 14:22:04 +0000
committerGleb Popov <arrowd@FreeBSD.org>2020-08-16 14:22:04 +0000
commit1f22b36313f913ee4e5356b61af6dfe4f2e8d3d9 (patch)
tree1d80078aca591b276537712a1d609eccb483d708 /lang/ghc
parent1eec374f6a8c34dd6fbf71648ef5e8c91732850f (diff)
downloadports-1f22b36313f913ee4e5356b61af6dfe4f2e8d3d9.tar.gz
ports-1f22b36313f913ee4e5356b61af6dfe4f2e8d3d9.zip
lang/ghc: Add a workaround patch to fix build with LLD 10 (12-STABLE and 13-CURRENT)
Reported by: David Wolfskill <david@catwhisker.org>
Notes
Notes: svn path=/head/; revision=545120
Diffstat (limited to 'lang/ghc')
-rw-r--r--lang/ghc/files/patch-utils_iserv_ghc.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/ghc/files/patch-utils_iserv_ghc.mk b/lang/ghc/files/patch-utils_iserv_ghc.mk
new file mode 100644
index 000000000000..a8b97412ddd9
--- /dev/null
+++ b/lang/ghc/files/patch-utils_iserv_ghc.mk
@@ -0,0 +1,11 @@
+--- utils/iserv/ghc.mk.orig 2019-11-23 20:27:35 UTC
++++ utils/iserv/ghc.mk
+@@ -31,7 +31,7 @@ endif
+ # 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"
++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