diff options
-rwxr-xr-x | debian/rules | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index 89119ae07..794653bf7 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 %: |