ld looking for various object files and libs in wrong dir

Ian Lance Taylor ian@wasabisystems.com
Wed Feb 11 19:59:00 GMT 2004


Christopher J Bottaro <cbottaro@geocenter.com> writes:

> ld is looking for crtbegin.o, crtend.o, libgcc.a, etc. in:
> /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/
> instead of:
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/
> 
> i installed gcc-3.3.2 and binutils-2.14 into /usr/local/.  what is going on?

ld isn't going to look in that directory unless something else tells
it to.  Run gcc -v to see what -L options gcc is passing to the
linker.  Check whether you have that directory in some relevant
environment variable.

Ian



More information about the Binutils mailing list