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 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: Robert Buchholz <rbu@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xen/Makefile: use CC --version instead of -v
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 27 Aug 2008 12:00:31 +0100
Cc:
Delivery-date: Wed, 27 Aug 2008 04:01:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C4DAEC27.267B6%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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckIMGozqQkfbHQjEd2YpwAX8io7RQAA7TqQ
Thread-topic: [Xen-devel] [PATCH] xen/Makefile: use CC --version instead of -v
User-agent: Microsoft-Entourage/11.4.0.080122
On 27/8/08 11:33, "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx> wrote:

> On 27/8/08 11:12, "Robert Buchholz" <rbu@xxxxxxxxxx> wrote:
> 
>> Btw, what is the reason for ".*" in the first place?
> 
> Lost somewhat in the mists of time, but I think some vendor packages
> (possibly Red Hat iirc) stuck something in between 'gcc' and 'version'.
> 
> Another tactic might be 'tail -n1'. I can't remember if the version is
> always the last line of 'gcc -v' output though.
> 
> Hmmm... actually that is what Linux does (tail -n 1). So let's go with that.

I've checked in 'tail -1' which I think is more portable. If that is
agreeable to everyone then I'll backport to 3.3 and 3.2 branches.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel