This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc 3.0.1 does not work on Solaris 8/sparc


On Sep  7, 2001, Mark Mitchell <mark@codesourcery.com> wrote:

>  Is there a reason against using the simple and portable
>> rm -f somelink
>> ln -s /usr/bin somelink

> Seems reasonable to me.  V3 people, would you look into making this
> change so that the Makefiles are more portable?

Whoever does it, please don't fall prey of basename, which is not
portable; use `echo filename | sed 's,.*/,,'` instead.  And beware the
brain-dead semantics of VPATH with Solaris' make: it will prepend a
VPATH directory to *any* *occurrences* *whatsoever* of a filename that
appears in the dependence list if the filename appears in one of the
VPATH directories, even if the occurrences is not related at all with
$?, $<, etc.  This is even documented in the manual.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]