[Build-common-hackers] CFLAGS env
Mon, 1 Dec 2003 21:29:39 -0500
Content-Type: text/plain; charset=us-ascii
On Tue, Dec 02, 2003 at 02:41:48AM +0100, Robert Millan wrote:
> On Mon, Dec 01, 2003 at 08:29:18PM -0500, Dan Weber wrote:
> > Which variable do I need to change so I can set different CFLAGS than t=
> > defaults ones when useing the following rules file.
> > include /usr/share/cdbs/1/rules/tarball.mk
> > include /usr/share/cdbs/1/rules/debhelper.mk
> > include /usr/share/cdbs/1/class/makefile.mk
> > include /usr/share/cdbs/1/rules/simple-patchsys.mk
> AFAIK cdbs should honor CFLAGS if you define it. If it doesn't, look at
> makefile-vars.mk which is probably the responsible for modifiing it.
It did not seem to honor CFLAGS unforteunetly. I lookeded at makefile-vars=
and add the following line. =20
DEB_MAKE_INVOKE :=3D $(DEB_MAKE_ENVVARS) \
make -C $(DEB_BUILDDIR) CFLAGS =3D '-O2 -Wall -Werror -g -I. -I..
-I../charset `gtk-config --cflags`'
However it is not using the line for reasons I do not know why. =20
> Robert Millan
> "[..] but the delight and pride of Aule is in the deed of making, and in =
> thing made, and neither in possession nor in his own mastery; wherefore he
> gives and hoards not, and is free from care, passing ever on to some new =
> -- J.R.R.T, Ainulindale (Silmarillion)
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
-----END PGP SIGNATURE-----