From e1981428e70f2862511a9b7065fa57cb91de770b Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 23 Feb 2020 16:05:47 +0100 Subject: [PATCH] debian: Add hardening, recommended by lintian Signed-off-by: Joachim Nilsson --- debian/rules | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 19ddb34..98270b6 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,12 @@ #!/usr/bin/make -f +# export DH_VERBOSE=1 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_CFLAGS_MAINT_APPEND = -W -Wall -Wextra -O3 +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 +NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + +include /usr/share/dpkg/default.mk # provides DEB_VERSION %: dh $@ --with autoreconf