summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2014-08-31 00:59:22 +0200
committerAxel Beckert <abe@deuxchevaux.org>2014-08-31 00:59:22 +0200
commit118bf219d10f8e5d39642acc04328f718dfba737 (patch)
treef8688296b5508db016920427948eaa930bb93663
parentf3708a118a60e49cf6adf2066454fde32ee860df (diff)
downloadzsh-118bf219d10f8e5d39642acc04328f718dfba737.tar.gz
zsh-118bf219d10f8e5d39642acc04328f718dfba737.zip
Move export of DEB_BUILD_MAINT_OPTIONS before buildflags.mk inclusion
Git-Dch: Ignore
-rwxr-xr-xdebian/rules12
1 files changed, 6 insertions, 6 deletions
diff --git a/debian/rules b/debian/rules
index be0c1a195..e4ab160d0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,12 @@
INSTALL = install
INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
+# 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
+
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
H_LDFLAGS = $(LDFLAGS)
@@ -40,12 +46,6 @@ 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