From ef25abf92e55118756eb73bab406d3adf33946f9 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 27 May 2008 00:37:02 +0200 Subject: [PATCH] debian/rules: Pass -I... and -D... to CPPFLAGS instead of CFLAGS. Those are really options for the preprocessor instead of the compiler. --- debian/rules | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.30.2