summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2014-08-31 00:55:16 +0200
committerAxel Beckert <abe@deuxchevaux.org>2014-08-31 00:55:16 +0200
commitf3708a118a60e49cf6adf2066454fde32ee860df (patch)
tree45efd5a5c221d8271aaa69bd9053a987a28cb3f1
parent04b6fccfc41c9be3c412e6f3b76d0007dfe2ebbe (diff)
downloadzsh-f3708a118a60e49cf6adf2066454fde32ee860df.tar.gz
zsh-f3708a118a60e49cf6adf2066454fde32ee860df.zip
Disable -fstack-protector-strong on s390x
It causes endless loops in gcc-4.9. See https://bugs.debian.org/759870 for details.
-rwxr-xr-xdebian/rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 0baeab34e..be0c1a195 100755
--- a/debian/rules
+++ b/debian/rules
@@ -40,6 +40,12 @@ CONFIGFLAGS += --enable-zsh-secure-free
CONFIGFLAGS += --enable-zsh-hash-debug
endif
+# Disable -fstack-protector-strong on s390x as it causes endless loops
+# in gcc-4.9. See https://bugs.debian.org/759870 for details
+ifeq (s390x,$(shell dpkg-architecture -qDEB_BUILD_ARCH))
+export DEB_BUILD_MAINT_OPTIONS=hardening=-stackprotectorstrong
+endif
+
BUILT_USING=$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W libcap-dev libncursesw5-dev libpcre3-dev libc-dev-bin)
build: build-arch build-indep