This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

building cross picks up wrong libc


I'm building a i686-pc-linux-gnu to powerpc--linux-gnu cross compiler with
gcc-3.0.2
using --prefix=/opt/powerpc for both binutils and gcc
binutil had built sucessfully
I've copied the libs and includes over from my target platform into
/opt/powerpc/powerpc--linux-gnu/

i've configured gcc with
--target=powerpc--linux-gnu --prefix=/opt/powerpc \
--enable-languages=c,c++ --enable-threads=posix

when the make of the cross compiler gets up to using xgcc to link libgcc_s.so,
it picks up my systems /lib/libc.so.6 and understandably fails.

Has anyone any idea why it would be picking up this libc rather than
/opt/powerpc/powerpc--linux-gnu/lib/libc.so.6 ?

alternatively, does anyone know what the decision logic is for where xgcc looks
for libraries, and where this happens in the source, then I at least have a
fighting chance of fixing this myself :)

Thanks,
Rob Taylor


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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