Code

rules: Use dpkg-buildflags to determine CPPFLAGS/CFLAGS.
authorSebastian Harl <sh@teamix.net>
Thu, 24 Jan 2013 15:06:40 +0000 (16:06 +0100)
committerSebastian Harl <sh@teamix.net>
Thu, 24 Jan 2013 15:06:40 +0000 (16:06 +0100)
debian/changelog
debian/rules

index 262264b06c1ab764d409ef9b5237c61c15cc0a8c..4802fcc3c90b7f8db90add1cc885c1a7207586a8 100644 (file)
@@ -20,6 +20,7 @@ pnp4nagios (0.6.19-1) UNRELEASED; urgency=low
     - Added format-security; fixing a missing printf-style format argument.
   * debian/rules:
     - Manually clean-up auto-generated scripts/rrd_modify.pl.
+    - Use dpkg-buildflags to determine CPPFLAGS/CFLAGS.
   * debian/icinga-module.cfg, debian/rules:
     - Provide a sample Icinga module configuration; thanks to Christoph Anton
       Mitterer for providing this (Closes: #683459).
index 51098b3304d94da10482a3cbae387f25e3f35158..e3ea6e59bdf44968bd4987b39e769686c67a4db8 100755 (executable)
@@ -19,6 +19,9 @@ else
 CROSS= --build $(DEB_BUILD_GNU_TYPE)
 endif
 
+CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
+
 get-orig-source:
        uscan --force --verbose --rename
 
@@ -37,7 +40,7 @@ config.status: configure
                                --without-kohana \
                                --with-kohana_system=/usr/share/php/kohana2/system \
                                --with-httpd-conf=/etc/apache2/conf.d \
-                               CFLAGS="$(CFLAGS)"
+                               CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)"
 
 build: build-arch build-indep