[libmpikmeans] 13/29: Make use of dpkg-buildflags (for hardening)

Christian Kastner chrisk-guest at moszumanska.debian.org
Mon Aug 25 21:20:00 UTC 2014


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

chrisk-guest pushed a commit to branch master
in repository libmpikmeans.

commit 3932923244c5c94114fa00fa2291d504977520f0
Author: Christian Kastner <debian at kvr.at>
Date:   Fri Feb 21 16:35:46 2014 +0100

    Make use of dpkg-buildflags (for hardening)
---
 debian/rules | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 52088a6..8ac65aa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,10 @@ export LSUBVER
 PYVERS = $(shell pyversions -r -v)
 export PYVERS
 
-CFLAGS += -Wall -Wno-unused
+# We override dh_auto_build, so we need to set these
+export CFLAGS += $(shell dpkg-buildflags --get CFLAGS) -Wall -Wno-unused
+export LDFLAGS += $(shell dpkg-buildflags --get LDFLAGS)
+export CPPFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
 
 
 %:

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



More information about the debian-science-commits mailing list