[Build-common-hackers] CFLAGS env

Dan Weber dan@mirrorlynx.com
Mon, 1 Dec 2003 21:29:39 -0500


--fUYQa+Pmc3FrFX/N
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=
he
> > defaults ones when useing the following rules file.
> >=20
> > 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
>=20
> 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=
=2Emk
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

Thanks Anyway,
Dan

> --=20
> Robert Millan
>=20
> "[..] but the delight and pride of Aule is in the deed of making, and in =
the
> 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 =
work."
>=20
>  -- J.R.R.T, Ainulindale (Silmarillion)

--fUYQa+Pmc3FrFX/N
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQE/y/kTF6i3K/AxoQERAhMxAJ9SZNPHniuQqEwkYKjifFCgNJ4/IwCdF2Hm
ZkJ8VQ9KXuWMHA4UfHk3P4I=
=61ge
-----END PGP SIGNATURE-----

--fUYQa+Pmc3FrFX/N--