From: Ian Jackson Date: Sun, 28 Dec 2014 16:16:54 +0000 (+0000) Subject: Build system: debian/rules: Support dpkg-buildflags. X-Git-Tag: v0.4.0_beta2~9 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=24982c27fdb324dacfffbe2e9a37388e4942a8ef;hp=c215a4bc817daf7b5631236c3c7b6a509479b034;p=secnet.git Build system: debian/rules: Support dpkg-buildflags. Signed-off-by: Ian Jackson --- 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