Build system: debian/rules: Support dpkg-buildflags.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 28 Dec 2014 16:16:54 +0000 (16:16 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 28 Dec 2014 16:50:35 +0000 (16:50 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
debian/rules

index e85a669..f6834ee 100644 (file)
@@ -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 <linux/if_tun.h>.
+  * debian/rules: Support dpkg-buildflags.
 
   Copyright updates:
   * Update to GPLv3.  Add missing copyright notices and credits.
index 9749fab..46c3676 100755 (executable)
 #  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