chiark / gitweb /
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 e85a669b4768b0b2ee801db808721dadcf5c25a9..f6834ee09024c2f8ef54cd16bd97e66d027741f0 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: 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.
 
   Copyright updates:
   * Update to GPLv3.  Add missing copyright notices and credits.
index 9749fab4357af5f8cdac1a68df40c74f081d0da4..46c36767ec12d3facb1e8a71c55fd3f7feb170bb 100755 (executable)
 #  along with this software; if not, see
 #  https://www.gnu.org/licenses/gpl.html.
 
 #  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
 build: build-stamp
 build-stamp:
        dh_testdir