From 7a29c941f8edc108b5f3fafd9b4eb7d1c7d685bd Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 24 Jan 2013 16:06:40 +0100 Subject: [PATCH] rules: Use dpkg-buildflags to determine CPPFLAGS/CFLAGS. --- debian/changelog | 1 + debian/rules | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.30.2