chiark / gitweb /
Add hardening flags
authorMatthew Vernon <matthew@debian.org>
Sun, 5 Jan 2014 16:48:20 +0000 (16:48 +0000)
committerMatthew Vernon <matthew@debian.org>
Sun, 5 Jan 2014 16:48:20 +0000 (16:48 +0000)
debian/rules

index dad6703..0c44678 100755 (executable)
@@ -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)