On Thursday 17 April 2008 04:04, Brian Dessent wrote:
> > What happened to the good old concept of looking up executables'
> > location in $PATH if they have no slashes on the name?
> > 
> > (Oh well)^2. Recompiling with --with-as="/usr/bin/$CROSS-as"...
> 
> Why do you think it's necessary to specify this?

I don't think that it is necessary. I find it useful.
It's useful in a following way:
if gcc will invoke as and ld by execvp("x86_64-linux-uclibc-as"...),
I can trivially fix all cases where it calls "wrong" as/ld
by either installing working one or changing the $PATH.

*I can do it without recompiling gcc or having to put as/ld in some
obscure multi-level directories* - this is what I like the most.

> Configure will 
> automatically find and use $tooldir/bin/as (= $prefix/$target/bin/as) or
> $target-as in PATH.

Only in my case, $prefix contain neither as nor ld. gcc lives in

/usr/app/gcc-4.3.0-x86_64-linux-uclibc/*

while binutils lives in

/usr/app/binutils-2.18-x86_64-linux-uclibc/*

it's much better for sanity that way.
--
vda

Reply via email to