[med-svn] [plink1.9] 03/04: Activate hardening without patching makefile

Dylan Aïssi bob.dybian-guest at moszumanska.debian.org
Thu Feb 12 07:11:44 UTC 2015


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

bob.dybian-guest pushed a commit to branch master
in repository plink1.9.

commit 9da446b11559eff4c349571f793c3b80016dbcc2
Author: Dylan Aïssi <bob.dybian at gmail.com>
Date:   Thu Feb 5 09:00:28 2015 +0100

    Activate hardening without patching makefile
---
 debian/patches/series | 2 +-
 debian/rules          | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/patches/series b/debian/patches/series
index 3e9bcab..d6a8598 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,4 @@
 01_Fix_use_internal_lib.patch
-02_Activate_Hardening.patch
+#02_Activate_Hardening.patch
 #03_Rename_binary_to_plink1.9.patch
 04_Activate_Stable_Build.patch
diff --git a/debian/rules b/debian/rules
index 491e257..df71eb0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,9 @@
 # debian/rules file for the Debian/GNU Linux plink1.9 package
 # Copyright 2015 by Dylan Aïssi <bob.dybian at gmail.com>
 
-# Uncomment this to turn off verbose mode.
-#export DH_VERBOSE=1
+CFLAGS := -Wall
+# Tip for activate hardening without patching the makefile
+CFLAGS += $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get LDFLAGS)
 
 %:
 	dh $@
@@ -13,6 +14,9 @@ override_dh_auto_clean:
 	dh_auto_clean
 	rm -f plink1.9
 
+override_dh_auto_build:
+	$(MAKE) CFLAGS='$(CFLAGS)'
+
 override_dh_install:
 	# Rename binary from plink to plink1.9 to avoid name conflict
 	mv plink plink1.9

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



More information about the debian-med-commit mailing list