---
ChangeLog | 4 ++++
debian/rules | 6 +++++-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6cdb1ed..f28c7b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2012-05-29 Guillaume Lazzara <z(a)lrde.epita.fr>
+ * debian/rules: Add hardening flags according to Debian policy.
+
+2012-05-29 Guillaume Lazzara <z(a)lrde.epita.fr>
+
* debian/compat: Upgrade to debhelper 9.
2012-05-23 Guillaume Lazzara <z(a)lrde.epita.fr>
diff --git a/debian/rules b/debian/rules
index a94b647..c71eb5d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,10 +22,14 @@ endif
build: build-stamp
+
+# Add Hardening flags during configure according to Debian policy.
+# See:
http://wiki.debian.org/HardeningWalkthrough
+#
http://wiki.debian.org/Hardening
build-stamp:
dh_testdir
./bootstrap
- ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --enable-scribo
--prefix=/usr --libexecdir=/usr/lib
+ ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --enable-scribo
--prefix=/usr --libexecdir=/usr/lib $(shell dpkg-buildflags --export=configure)
$(MAKE) -j$(CPU_COUNT)
touch $@
--
1.7.2.5