From 24982c27fdb324dacfffbe2e9a37388e4942a8ef Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 28 Dec 2014 16:16:54 +0000 Subject: [PATCH] Build system: debian/rules: Support dpkg-buildflags. Signed-off-by: Ian Jackson --- debian/changelog | 1 + debian/rules | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/debian/changelog b/debian/changelog index e85a669..f6834ee 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,7 @@ secnet (0.4.0~beta2~) unstable; urgency=low * debian/rules: set DESTDIR (not prefix). * Do not install ipaddrset.py and secnet.8 executable. * Fix check for . + * debian/rules: Support dpkg-buildflags. Copyright updates: * Update to GPLv3. Add missing copyright notices and credits. diff --git a/debian/rules b/debian/rules index 9749fab..46c3676 100755 --- a/debian/rules +++ b/debian/rules @@ -30,6 +30,10 @@ # along with this software; if not, see # https://www.gnu.org/licenses/gpl.html. +export EXTRA_CFLAGS= $(shell dpkg-buildflags --get CPPFLAGS) \ + $(shell dpkg-buildflags --get CFLAGS) +export EXTRA_LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS) + build: build-stamp build-stamp: dh_testdir -- 2.11.0