This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 3.3.4 cross build for mipsel mischooses the `as' to run
James E Wilson <wilson@specifixinc.com> writes:
> On Thu, 2004-08-05 at 12:41, Zack Weinberg wrote:
>> 5) $PATH at configure time.
>> 6) MD_EXEC_PREFIX.
>
> I wouldn't choose to use the $PATH at configure time, but I don't really
> care. If others think it should work that way, then I will just adapt.
I don't care much either way. I put that in there because I thought
it would make a good substitute for the current behavior of falling
back to $PATH at compiler runtime when we don't find anything in the
hardwired locations. I was trying to eliminate that, on the theory
that it causes trouble when people rearrange stuff down the road; but
that's only a theory.
Another possibility is to have the driver tack MD_EXEC_PREFIX on the
_end_ of $PATH as used by pexecute for invoking cc1, as, etc.
> We would need some way for configure to feed that path name back
> into the gcc driver, to make sure that this path is always used
> consistently. There would be a question of whether we are recording
> the entire path, or just the one directory where we found as/ld.
> The latter could be a problem if as and ld are in different
> directories, but that may be too unlikely to worry about.
My thought was that we would find as and ld at configure time, and
then symlink them into the gcc build directory. During bootstrap,
they'd get picked up by -B./. We would then install those symlinks
below $libsubdir, and they'd get picked up there when you ran the
installed compiler. The driver wouldn't search anything other than
$libsubdir and any -B directories when run.
There are probably details that kill this idea.
> We might have to modify the docs to state that it is important that
> the path has to be set correctly before you configure gcc. If you
> have your path pointing to an temporary binutils install tree, then
> gcc will fail after installation if that temporary install tree is
> removed.
Agree.
zw