summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-04-27 11:10:05 +0800
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-05-25 05:52:02 -0400
commitc67c9e8239a767aa870c1b7aa2adf2a363205837 (patch)
tree2aee0fc9778f5ec7480617ea377069de6e1efd04 /ghc.mk
parent4d100f68e6ab76fbfc45515828dcee4e66d924cb (diff)
downloadhaskell-c67c9e8239a767aa870c1b7aa2adf2a363205837.tar.gz
[bindist] inject xattr -c -r . into the darwin install phase
This is so awful, but at least it might get the job done.
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index 2481001224..070ddfe45b 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -820,6 +820,16 @@ install_mingw : $(INPLACE_MINGW)
endif # Windows_Host
+# the following is the work around suggested by @carter in #17418 during install
+# time. This should help us with code signing issues by removing extended
+# attribuets from all files.
+ifeq "$(Darwin_Host)" "YES"
+install : install_darwin
+.PHONY: install_darwin
+install_darwin:
+ xattr -c -r .
+endif # Darwin_Host
+
ifneq "$(BINDIST)" "YES"
$(ghc-prim-$(libraries/ghc-prim_dist-install_VERSION)_HADDOCK_FILE): \
libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs