[Debian-iot-packaging] [openzwave-controlpanel] 02/03: Append CPPFLAGS to CFLAGS to enable FORTIFY hardening

Dara Adib daradib-guest at moszumanska.debian.org
Wed Jan 18 01:55:17 UTC 2017


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

daradib-guest pushed a commit to branch debian/master
in repository openzwave-controlpanel.

commit 0113c080afff3ae4565268cdd197a498a8dcbb78
Author: Dara Adib <daradib at ocf.berkeley.edu>
Date:   Tue Jan 17 20:52:46 2017 -0500

    Append CPPFLAGS to CFLAGS to enable FORTIFY hardening
---
 debian/rules | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/rules b/debian/rules
index 83afd54..5083ad7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,12 @@
 #!/usr/bin/make -f
 #DH_VERBOSE = 1
 
+# Enable hardened build flags and append CPPFLAGS to CFLAGS
+# (e.g., -D_FORTIFY_SOURCE=2) to support upstream Makefile.
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+CFLAGS+=$(CPPFLAGS)
 
 %:
 	dh $@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-iot/openzwave-controlpanel.git



More information about the Debian-iot-packaging mailing list