Re: Cross-compiling with third party libraries
One option may be to specify -nostdlib to GCC and/or GLD.
You may have to add extra search paths and/or explicitly specify
particular libraries on the GCC/GLD command line.
Martin Morissette wrote:
Happy New Year to all!
I am currently trying to cross-compile a version of OpenJDK/IcedTea
for ARM and I am running into a few issues. Since there is no easy way
of managing third party libraries for cross-compilation under debian
(i.e. installing libjpeg for arm on a x86 host) I am compiling and
linking against lib and headers that I export from a native arm debian
machine. For that, I specify which LDFLAGS and CPPFLAGS to use while
compiling as follows:
./configure --build=x86 --host=arm-linux-gnueabi [...]/
Unfortunately, this fails to compile even the simplest c file. The
config.log gives me the following error:
/ configure:3066: checking for C compiler default output file name
-L/usr/local/dev/dev-headers-armel/usr/lib conftest.c >&5
skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
cannot find /lib/libc.so.6
collect2: ld returned 1 exit status
configure:3141: error: C compiler cannot create executables/
Does anyone have an idea of what the issue might be? Is there a
better, more common way of managing third party libs for