This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: ld looking for various object files and libs in wrong dir


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


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