summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Vernon <matthew@debian.org>2014-01-05 16:48:20 +0000
committerMatthew Vernon <matthew@debian.org>2014-01-05 16:48:20 +0000
commit1fbe8b04284b92b17764abf760d42f4452c75464 (patch)
tree928085a3868662c9c1171b97bc47b5a9a36ea0ce
parentd098687090e649132b596ed46bbb86c80295803e (diff)
Add hardening flags
-rwxr-xr-xdebian/rules6
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index dad6703..0c44678 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,11 @@ package=xtrlock
arch=$(shell dpkg --print-architecture)
STRIP=strip
-CFLAGS=-O2 -g -DSHADOW_PWD
+DPKG_EXPORT_BUILDFLAGS = 1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+include /usr/share/dpkg/buildflags.mk
+
+CFLAGS+=-DSHADOW_PWD
build:
$(checkdir)