This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Wrong as/ld picked by gcc configure
On Thu, Mar 13, 2003 at 11:05:32PM -0500, Daniel Jacobowitz wrote:
> On Thu, Mar 13, 2003 at 05:13:09PM -0800, H. J. Lu wrote:
> > When I have /usr/local/bin in PATH, new as/ld in /usr/local/bin and
> > configure gcc with --prefix=/usr/gcc-3.3, gcc configure won't find
> > as/ld in /usr/local/bin and get the wrong ones instead since it won't
> > check /usr/local/bin for as/ld. However, the resulting gcc does use
> > as/ld in /usr/local/bin. What is the best way to fix it?
>
> I think that configure should search $PATH, personally. I've just
> given up and I specify AS=`which as` in the environment.
>
Will gcc work if I remove as/ld in /usr/local/bin later after I update
the ones in /usr/bin? FWIW, the configures in other gcc directories
find the right as/ld.
I believe the logic behind the gcc configure is flawed. Should it use
the same approach as the gcc driver? If the gcc driver uses $PATH, why
does the gcc configure do it differently? It doesn't make any senses
to me.
H.J.