This is the mail archive of the gcc-help@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]

Cross compiling


I hope someone can point me at the right FM....

I am cross-compiling. This application absolutely refuses to build:

arm-linux-gcc main_nx.c -I../Lib -I../../microwin/src/include -I/home/local/panel/arm//ts7300-deb/usr/include -L/home/local/panel/arm//ts7300-deb/lib -L/home/local/panel/arm//ts7300-deb/usr/lib -nodefaultlibs -o swfplayer ../Lib/libflash.a -ljpeg -lnano-X -lm -lstdc++ -lz -lc
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/lib/gcc-lib/arm-linux/3.3.4/../../../../arm-linux/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/lib/gcc-lib/arm-linux/3.3.4/../../../../arm-linux/bin/ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status


For some reason this app is adamant about using /lib/libc.so.6, instead of my cross-libc..... libc.so.6 exists for my platform and is in the right place specified in

Can anyone shed any light on this?

What is the correct combination of flags to tell it not to use /lib but to use /my/cross/lib?

Thanks,

--Yan


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