Try this Shell> rm -f config.cache Shell> CC=<path>/arm-linux-gcc ./configure <options> (CC + configure - all in one line)
Gad
-----Original Message----- From: mad-dev-admin@lists.mars.org
[mailto:mad-dev-admin@lists.mars.org] On Behalf Of Gareth
Sent: Wednesday, February 27, 2002 9:02 PM To: mad-dev@lists.mars.org Subject: [mad-dev] Cross compiling libmad for ARM
Hi, I am wanting to compile libmad for ARM. I have installed :
arm-linux-binutils-2.11-1 arm-linux-gcc-2.95-1 arm-linux-glibc-2.1.3-1
To cross compile i do :
export CC=/usr/local/arm/gnu/release/bin/arm-linux-gcc export RANLIB=/usr/local/arm/gnu/release/bin/arm-linux-ranlib export LD=/usr/local/arm/gnu/release/bin/arm-linux-ld export NM=/usr/local/arm/gnu/release/bin/arm-linux-nm
./configure --host=arm-linux --enable-speed --enable-fpm=arm
The configure script completes fine but in the messages it prints i
see
the lines :
checking weather the C compiler (gcc ) is a cross-compiler ... no . . cheching for ld used by GCC... (cached) /usr/bin/ld
so it is not using the cross compiler that i installed. I read in another mail that i may have to configure manually. Is this the case
or
is there somthing i am missing out?
Thanks in advance.