Cross compiling

Yan Seiner yan@seiner.com
Thu May 31 00:59:00 GMT 2007


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



More information about the Gcc-help mailing list