From 429584306fe731af42618c4d45b315ba68134b7f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 26 Feb 2021 09:03:52 +0100 Subject: Applying patch from Gianfranco Costamagna to lower optimization level on s390x to fix FTBFS with new gcc. Signed-off-by: Daniel Baumann --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index 89119ae0..794653bf 100755 --- a/debian/rules +++ b/debian/rules @@ -10,8 +10,16 @@ VERSION_MINOR := $(word 2, $(subst ., ,$(VERSION))) VERSION_FIX := $(word 3, $(subst -, ,$(subst ., ,$(VERSION)))) VERSION_SUFFIX := -$(word 4, $(subst -, ,$(subst ., ,$(VERSION)))) +include /usr/share/dpkg/architecture.mk + export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +ifeq ($(DEB_HOST_ARCH),s390x) +export DEB_CFLAGS_MAINT_APPEND = -Wall -O2 +else export DEB_CFLAGS_MAINT_APPEND = -Wall -O3 +endif + export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed %: -- cgit v1.2.3