[med-svn] [praat] 06/08: Add hardening flags to the compiler commands
Rafael Laboissière
rlaboiss-guest at moszumanska.debian.org
Thu Aug 7 11:45:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
rlaboiss-guest pushed a commit to branch master
in repository praat.
commit 331b1f186d768c35c24f88388d850222a1ff7053
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date: Thu Aug 7 03:59:54 2014 -0300
Add hardening flags to the compiler commands
This is done through a Makefile fragment file
(debian/mk-vars-hardening) which is appended to the makefile.defs
files for changing the CFLAGS and CXXFLAGS appropriately.
---
debian/mk-vars-hardening | 2 ++
debian/rules | 2 ++
2 files changed, 4 insertions(+)
diff --git a/debian/mk-vars-hardening b/debian/mk-vars-hardening
new file mode 100644
index 0000000..f820ec2
--- /dev/null
+++ b/debian/mk-vars-hardening
@@ -0,0 +1,2 @@
+CFLAGS += $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
+CXXFLAGS = $(CFLAGS) -Wshadow $(shell dpkg-buildflags --get CXXFLAGS)
diff --git a/debian/rules b/debian/rules
index 3063f7c..04b5507 100755
--- a/debian/rules
+++ b/debian/rules
@@ -45,6 +45,8 @@ override_dh_auto_configure:
# warnings and useless dependencies
sed 's/^LIBS = /& -Wl,--as-needed /' \
makefiles/makefile.defs.linux.alsa > makefile.defs
+ # Add hardening flags
+ cat debian/mk-vars-hardening >> makefile.defs
%.1: $(DEBDIR)/%.dbk $(DEBDIR)/manpage.xsl
# Generate the man page from the DocBook source
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/praat.git
More information about the debian-med-commit
mailing list