Date: Sat, 17 Jan 2004 10:50:11 -0800 (PST) From: Ruslan Ermilov <ru@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/61322: bsd.dep.mk disallows shell generated flags in CFLAGS Message-ID: <200401171850.i0HIoB4H013015@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR misc/61322; it has been noted by GNATS.
From: Ruslan Ermilov <ru@FreeBSD.org>
To: "Valentin A. Alekseev" <valeks@novel-il.ru>
Cc: bug-followup@FreeBSD.org
Subject: Re: misc/61322: bsd.dep.mk disallows shell generated flags in CFLAGS
Date: Sat, 17 Jan 2004 20:42:07 +0200
--Oiv9uiLrevHtW1RS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Jan 13, 2004 at 10:31:29AM -0800, Valentin A. Alekseev wrote:
>=20
> >How-To-Repeat:
> Makefile:
> ..
> PROG=3D xgrep
> CFLAGS+=3D `xml2-config --cflags`
> ..
> Output of make depend:
> $ make depend
> rm -f .depend
> mkdep -f .depend -a xgrep.c
> xgrep.c:6:27: libxml/parser.h: No such file or directory
> xgrep.c:7:26: libxml/xpath.h: No such file or directory
> mkdep: compile failed
>=20
XML2_CFLAGS!=3D xml2-config --cflags
CFLAGS+=3D ${XML2_CFLAGS}
> >Fix:
> Here is a patch that blindly allows ones to use any shell generated
> vars in CFLAGS. Maybe it would be better to replace M`* with M`*-config a=
nd M*` with M--cflags`.
>=20
The patch you've sent is severely damaged.
Cheers,
--=20
Ruslan Ermilov
FreeBSD committer
ru@FreeBSD.org
--Oiv9uiLrevHtW1RS
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFACYH/Ukv4P6juNwoRAqSrAJ9OdZQMXmlhbuJrFVToCa+YRdJomwCfYYWz
H5YusPv3iJwiRLnPmvqhkxY=
=61P0
-----END PGP SIGNATURE-----
--Oiv9uiLrevHtW1RS--
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401171850.i0HIoB4H013015>
