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]
Other format: [Raw text]

Re: Wrong as/ld picked by gcc configure


On Fri, Mar 14, 2003 at 12:16:09PM -0500, DJ Delorie wrote:
> 
> > The gcc driver calls pexecute which will use PATH unless MD_EXEC_PREFIX
> > is defined. It has been this way for a long time. Did I miss something
> > here?
> 
> The problem is that the $PATH searched during configure is not always
> the same as the $PATH searched by the driver (it may not even be the
> same machine), so configure can not rely on $PATH yielding useful
> data.

Even if it is on the same machine, PATH may be different for different
users. But right now the gcc configure may find a DIFFERENT as/ld which
the gcc driver actually uses. Why bother with this? You have little
control over which as/ld will be actually used. On different machines,
the same location doesn't mean the same binary. The least we can do is
to make the gcc configure to match the gcc driver and document it.


H.J.


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