summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/ghc.mk b/ghc.mk
index 94c2ce38ee..b0dc34c2b4 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -827,10 +827,12 @@ endif # Windows_Host
# time. This should help us with code signing issues by removing extended
# attribuets from all files.
ifeq "$(Darwin_Host)" "YES"
+XATTR ?= /usr/bin/xattr
+
install : install_darwin
.PHONY: install_darwin
install_darwin:
- xattr -c -r .
+ if [ -e "${XATTR}" ]; then "${XATTR}" -c -r .; fi
endif # Darwin_Host
ifneq "$(BINDIST)" "YES"