From 49e3f86395dacc82de397e28e8bd4bf2a2c1ce9e Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Mon, 3 Oct 2016 14:59:05 +0200 Subject: [PATCH] add hardening flags --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules b/debian/rules index 88943df..663b9f0 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,10 @@ #!/usr/bin/make -f +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed,--no-undefined,--no-add-needed +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + %: dh $@ --with autotools-dev --with systemd