[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CC can be a program name *with arguments*
From: |
Gary V. Vaughan |
Subject: |
Re: CC can be a program name *with arguments* |
Date: |
Fri, 25 Feb 2005 12:21:14 +0000 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041103) |
Hi Peter!
Bob Friesenhahn wrote:
> On Thu, 24 Feb 2005, Peter O'Gorman wrote:
>
>> Okay to apply to branch-1-5 and then forward port?
>
> Doesn't it make most sense to fix cc_basename so that it doesn't include
> any trailing cruft? Then the switch would not need to be changed. The
> wildcard might match a command name which differs by later characters.
My thoughts exactly. cc_basename is only ever used in case statements,
so lets set it with:
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%;s%[ ].*$%%'`
Also I notice that there are a couple of instances of:
case "$cc_basename" in
where we should remove the quotes.
Cheers,
Gary.
--
Gary V. Vaughan ())_. address@hidden,gnu.org}
Research Scientist ( '/ http://tkd.kicks-ass.net
GNU Hacker / )= http://www.gnu.org/software/libtool
Technical Author `(_~)_ http://sources.redhat.com/autobook
signature.asc
Description: OpenPGP digital signature