From: Keir Fraser Subject: Re: [PATCH] xen/Makefile: use CC --version instead of -v Date: Wed, 27 Aug 2008 11:33:59 +0100 Message-ID: References: <200808271212.33043.rbu@gentoo.org> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200808271212.33043.rbu@gentoo.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Robert Buchholz , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 27/8/08 11:12, "Robert Buchholz" 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. -- Keir