[pfft] 01/02: d/rules: add hardening flags

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Sep 11 13:27:17 UTC 2014


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository pfft.

commit fb03e7148b81072318bb502762527449898396c7
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Sep 11 11:19:43 2014 +0100

    d/rules: add hardening flags
---
 debian/rules | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index cd05b98..5cc8ec8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,11 +4,23 @@
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/default.mk
 
+# see FEATURE AREAS in dpkg-buildflags(1)
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# see ENVIRONMENT in dpkg-buildflags(1)
+# package maintainers to append CFLAGS
+export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
+# package maintainers to append LDFLAGS
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+
 %:
 	dh $@ --with autoreconf
 
 override_dh_auto_configure:
-	dh_auto_configure -- --enable-threads --enable-portable-binary
+	dh_auto_configure -- \
+		--enable-threads \
+		--enable-portable-binary
 
 override_dh_strip:
 	dh_strip --dbg-package=libpfft0-dbg

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pfft.git



More information about the debian-science-commits mailing list