[med-svn] [ismrmrd] 03/11: d/rules: use stricter hardening

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Sep 22 07:43:22 UTC 2015


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

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

commit da4b03030a9aab6c9d2098cfcc54d6228ec5f33f
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Sep 18 09:43:43 2015 +0100

    d/rules: use stricter hardening
---
 debian/rules | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index 2a64be0..6a6839c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,13 +4,21 @@
 # Uncomment this to turn on verbose mode.
 export DH_VERBOSE=1
 
-BUILDDIR = $(CURDIR)/debian/build
+# Hardening flags.
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+# Environment settings.
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+BUILDDIR = obj-$(DEB_BUILD_GNU_TYPE)
 
 %:
-	dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --parallel
+	dh $@ --builddirectory=$(BUILDDIR) --parallel
 
 override_dh_auto_configure:
-	dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr \
+	dh_auto_configure -- \
+		-DCMAKE_INSTALL_PREFIX=/usr \
 		-DUSE_SYSTEM_PUGIXML=ON
 
 override_dh_auto_clean:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/ismrmrd.git



More information about the debian-med-commit mailing list