[Build-common-hackers] CFLAGS and implicit rules

Tom Huckstep t.huckstep@bigfoot.com
Fri, 9 Apr 2004 18:36:38 +0100


Colin Walters wrote:
> On Fri, 2004-04-09 at 08:51, Tom Huckstep wrote:
> > I've thought of "override CFLAGS +=3D $(UPSTREAM_CFLAGS)" but it's not nice.
>
> What's not nice about it?

+= is not portable, for a start.

Upstream says:

  "The polipo makefile uses the XFree86 makefile conventions, in which
   CFLAGS contains all the flags passed to the C compiler.  CDEBUGFLAGS,
   PLATFORM_DEFINES and EXTRA_DEFINES are what the user should customise.

   See the /usr/bin/X11/makeg script for an example."


I want to make minimal changes to the upstream build system.  Do you suggest
I change the upstream Makefile, or change some DEB_ variables in
debian/rules?

Tom