libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CC can be a program name *with arguments*


From: Peter O'Gorman
Subject: Re: CC can be a program name *with arguments*
Date: Fri, 25 Feb 2005 21:33:17 +0900
User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)

Gary V. Vaughan wrote:
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.

Okay, these are valid points, I'll redo.

Peter
--
Peter O'Gorman - http://www.pogma.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]