From: Sebastian Harl Date: Mon, 26 May 2008 22:37:02 +0000 (+0200) Subject: debian/rules: Pass -I... and -D... to CPPFLAGS instead of CFLAGS. X-Git-Tag: collectd-4.4.1-1~12 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ef25abf92e55118756eb73bab406d3adf33946f9;p=pkg-collectd.git debian/rules: Pass -I... and -D... to CPPFLAGS instead of CFLAGS. Those are really options for the preprocessor instead of the compiler. --- diff --git a/debian/rules b/debian/rules index f535c97..36abe9c 100755 --- a/debian/rules +++ b/debian/rules @@ -12,13 +12,14 @@ DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) -CFLAGS = -Wall -g -I$(CURDIR)/debian/include +CPPFLAGS = -I$(CURDIR)/debian/include +CFLAGS = -Wall -g # There is no way to tell lt_dlopen() to use the RTLD_GLOBAL flag which is # however required by the perl plugin (which would otherwise be unable to find # symbols defined in libperl when loading perl modules that require such # symbols). This is a workaround for this issue. -CFLAGS += -DLT_LAZY_OR_NOW='RTLD_LAZY|RTLD_GLOBAL' +CPPFLAGS += -DLT_LAZY_OR_NOW='RTLD_LAZY|RTLD_GLOBAL' ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 @@ -52,7 +53,7 @@ endif config.status: configure $(DPATCH_STAMPFN) dh_testdir - CFLAGS="$(CFLAGS)" ./configure $(confflags) + CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" ./configure $(confflags) build: build-stamp