[Build-common-hackers] CFLAGS and implicit rules

Colin Walters walters@verbum.org
Fri, 09 Apr 2004 15:04:24 -0400


--=-ht/8songQRrVW7cUF6bD
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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

True.  But all Debian systems have GNU make as "make".

> Upstream says:
>=20
>   "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.

Ick.  Well, if you don't want to go patching the upstream Makefile, you
could probably override DEB_MAKE_INVOKE, e.g.:

#!/usr/bin/make -f

include /usr/share/cdbs/1/class/makefile.mk

DEB_MAKE_INVOKE =3D $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR)


--=-ht/8songQRrVW7cUF6bD
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAdvO4OIkJWWp2WGURAtz0AJ9LweIJm+rqrf0LfaSCC/CAnNSwLgCeJN6E
yeJVK0iI2ofPpHZjbX94pz4=
=3UAT
-----END PGP SIGNATURE-----

--=-ht/8songQRrVW7cUF6bD--