misc/61322: bsd.dep.mk disallows shell generated flags in CFLAGS

Ruslan Ermilov ru at FreeBSD.org
Sat Jan 17 10:50:13 PST 2004


The following reply was made to PR misc/61322; it has been noted by GNATS.

From: Ruslan Ermilov <ru at FreeBSD.org>
To: "Valentin A. Alekseev" <valeks at novel-il.ru>
Cc: bug-followup at 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 at 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--


More information about the freebsd-bugs mailing list