From: Robert Buchholz Subject: Re: [PATCH] xen/Makefile: use CC --version instead of -v Date: Wed, 27 Aug 2008 12:12:29 +0200 Message-ID: <200808271212.33043.rbu@gentoo.org> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0214465057==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0214465057== Content-Type: multipart/signed; boundary="nextPart1270988.aFPgy44cz0"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1270988.aFPgy44cz0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 27 August 2008, Keir Fraser wrote: > On 27/8/08 00:06, "Robert Buchholz" wrote: > > I propose to change the statement to: > > $(CC) $(CFLAGS) --version | head -n1 > > I think we can just tighten up the grep regexp a little. > > "gcc .*version " should do it. That is not guaranteed to filter only the desired lines (if a configure=20 parameter would end in "gcc", or there is "gcc " in the path GCC was=20 compiled in). The reason I proposed "gcc --version | head -n1" was that the output is=20 only dependent on the GCC source, whereas "gcc -v | grep" also depends=20 on the system configuration. Btw, what is the reason for ".*" in the first place? Regards, Robert --nextPart1270988.aFPgy44cz0 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iQIcBAABAgAGBQJItSiQAAoJECaaHo/OfoM5GbIQAJu8ZSPxQNj0Cg3tHzxlUP3s ARwpZAqE4fHaTSDi2V3/2EwZSMYruk6TVnI1etevBqE3HaybRssC26R19FMtKuSa vt+b11VVPQpEnPwsu9DzdwBO7y1eQJgHlIo6kAdG283+sTb5vmUgGd39eu32m8Ai Uf5/mhAGhLx8FJtNH8od11VVZkzSFxiaCN6mxtxJMe/zFqdfRjXtPJT3SCN9h2Rc /3vKzQvKyHeblzW3BGMDUH7r5zOHyNgkiu+r5bzYuHGhlYFbtvWfjAs1jeMBGe7M aw3J7Ydd1OEGRfx9r4f+QSzDelC1jI9fUKshUMHL+gYN0hsJ2SJntPPOzzkPmrtH 5HAqieCFskVu9hjy6geuUSOzj4nEKfBPIVV+exxL1EPqpfUslIZTuJp00Tvmse5Z Vd8Qhj62Emy7AB1F8MExlWrmvelA2nUNJa33hqZ4FaBycd8+H1TJN2ZSPwmMbAcO /moHCJPlt3BtyZX/v2a8MoqECQgsGRLH/qRC+HypbrusymFiIU1z5WWXZmCRs0cp a27lSppHHKgp5JYNClkkYbMphnyMGM33C16RaTAgq+VVpD4HHF2XZ4n8lnWiD5oL ZGT6gCb1p/2cacgMWSrs8rd5U7EtC2n5mwuEhQi3KhZlI8OcxnR9NkrDRClxKyTm 3RvX+69qFRRxw8Qo3XvV =nhxl -----END PGP SIGNATURE----- --nextPart1270988.aFPgy44cz0-- --===============0214465057== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0214465057==--