From: Sebastian Harl Date: Thu, 24 Jan 2013 15:06:40 +0000 (+0100) Subject: rules: Use dpkg-buildflags to determine CPPFLAGS/CFLAGS. X-Git-Tag: v_0_6_19-1~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7a29c941f8edc108b5f3fafd9b4eb7d1c7d685bd;p=pkg-pnp4nagios.git rules: Use dpkg-buildflags to determine CPPFLAGS/CFLAGS. --- diff --git a/debian/changelog b/debian/changelog index 262264b..4802fcc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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). diff --git a/debian/rules b/debian/rules index 51098b3..e3ea6e5 100755 --- a/debian/rules +++ b/debian/rules @@ -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