[suitesparse-metis] 22/28: Add hardening flags

Wolfgang Fütterer wlfuetter-guest at moszumanska.debian.org
Mon Sep 7 10:18:24 UTC 2015


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

wlfuetter-guest pushed a commit to branch master
in repository suitesparse-metis.

commit 41c75926bba3247fc68015b1a24eb50cc5c97731
Author: Wolfgang Fuetterer <debian at wlf-online.de>
Date:   Tue Nov 25 21:40:25 2014 +0100

    Add hardening flags
---
 debian/rules | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 8663be8..f5b5d7c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,11 +11,15 @@ DEB_MAKE_CLEAN_TARGET   := clean
 DEB_MAKE_BUILD_TARGET   := default
 DEB_COMPRESS_EXCLUDE    := .pdf
 
-CFLAGS=-Wall -fexceptions -O3
+CFLAGS=-Wall -fexceptions -O3 -fstack-protector-strong -Wformat -Werror=format-security
 ifeq ($(DEB_HOST_ARCH_CPU),amd64)
  CFLAGS+=-m64
 endif
 
+CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
+CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
+LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+
 binary-post-install/libsuitesparse-metis::
 	install -d debian/libsuitesparse-metis/usr/share/lintian/overrides
 	install -m 644 debian/libsuitesparse-metis.overrides debian/libsuitesparse-metis/usr/share/lintian/overrides/libsuitesparse-metis

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



More information about the debian-science-commits mailing list