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 dad6703278224ebabaaa90d0f9c0bf8929b2f50d..0c4467816182b0295523feac4965dc868f0193e2 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)