[Build-common-hackers] Bug#301667: [patch] cdbs does not propagate CPPFLAGS

James Morrison ja2morri@csclub.uwaterloo.ca (James Morrison), 301667@bugs.debian.org
Sun, 27 Mar 2005 10:27:45 -0500 (EST)


package: cdbs
version 0.4.27-3

 Hi,

  CDBS does not propagate CPPFLAGS for autotools using packages, it probably
should.  Here is the patch.

--- autotools-vars.mk.old	2005-03-27 10:24:18.504530776 -0500
+++ autotools-vars.mk	2005-03-27 10:24:36.197840984 -0500
@@ -36,7 +36,7 @@
 DEB_AC_AUX_DIR = $(DEB_SRCDIR)
 
 DEB_CONFIGURE_SCRIPT = $(CURDIR)/$(DEB_SRCDIR)/configure 
-DEB_CONFIGURE_SCRIPT_ENV = CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)"
+DEB_CONFIGURE_SCRIPT_ENV = CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)"
 DEB_CONFIGURE_NORMAL_ARGS = --build=$(DEB_BUILD_GNU_TYPE) --prefix=$(DEB_CONFIGURE_PREFIX) --includedir=$(DEB_CONFIGURE_INCLUDEDIR) --mandir=$(DEB_CONFIGURE_MANDIR) --infodir=$(DEB_CONFIGURE_INFODIR) --sysconfdir=$(DEB_CONFIGURE_SYSCONFDIR) --localstatedir=$(DEB_CONFIGURE_LOCALSTATEDIR) --libexecdir=$(DEB_CONFIGURE_LIBEXECDIR)
 
 # Provide --host only if different from --build, as recommended in