This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld looking for various object files and libs in wrong dir
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Christopher J Bottaro <cbottaro at geocenter dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 11 Feb 2004 14:59:06 -0500
- Subject: Re: ld looking for various object files and libs in wrong dir
- References: <200402111050.39581.cbottaro@geocenter.com>
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