WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

Re: [Xen-devel] [PATCH] xen/Makefile: use CC --version instead of -v

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] xen/Makefile: use CC --version instead of -v
From: Robert Buchholz <rbu@xxxxxxxxxx>
Date: 2008年8月27日 12:12:29 +0200
Delivery-date: 2008年8月27日 03:13:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C4DAD536.2677A%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C4DAD536.2677A%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.9
On Wednesday 27 August 2008, Keir Fraser wrote:
> On 27/8/08 00:06, "Robert Buchholz" <rbu@xxxxxxxxxx> 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 
parameter would end in "gcc", or there is "gcc " in the path GCC was 
compiled in).
The reason I proposed "gcc --version | head -n1" was that the output is 
only dependent on the GCC source, whereas "gcc -v | grep" also depends 
on the system configuration.
Btw, what is the reason for ".*" in the first place?
Regards,
Robert

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] Re: [Qemu-devel] [PATCH 05/13] xen: groundwork for xen support , Ian Jackson
Next by Date: Re: [Xen-devel] Re: [Qemu-devel] [PATCH 05/13] xen: groundwork for xen support , Daniel P. Berrange
Previous by Thread: Re: [Xen-devel] [PATCH] xen/Makefile: use CC --version instead of -v , Keir Fraser
Next by Thread: Re: [Xen-devel] [PATCH] xen/Makefile: use CC --version instead of -v , Keir Fraser
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /