cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem cross compiling curl

From: Guenter Knauf <eflash_at_gmx.net>
Date: Fri, 25 Jan 2008 21:03:45 +0100

Hi,
> I am trying to cross compile libCurl for my gumstix. I made the tool chain
> the first thing in my
> path. I then specify ./configure --host=arm-linux followed by make
> the compile dies with the following error :
I was few days ago on cross-compiling binutils, and ran into similar probs;
then I've read somewhere on a list that 'you cant let configure guess anything'...
and then I used this:

#!/bin/sh
CC_FOR_BUILD=i586-mingw32msvc-gcc \
GCC_FOR_BUILD=i586-mingw32msvc-gcc \
AS_FOR_BUILD=i586-mingw32msvc-as \
AR_FOR_BUILD=i586-mingw32msvc-ar \
LD_FOR_BUILD=i586-mingw32msvc-ld \
LDFLAGS_FOR_BUILD="-s" \
CC_FOR_TARGET=i586-mingw32msvc-gcc \
GCC_FOR_TARGET=i586-mingw32msvc-gcc \
AS_FOR_TARGET=i586-mingw32msvc-as \
LD_FOR_TARGET=i586-mingw32msvc-ld \
LDFLAGS_FOR_TARGET="-s" \
./configure \
--target=i586-netware \
--host=i586-mingw32msvc \
--build=i686-pc-linux-gnu

you should probably try with something similar...

HTH, Guenter.
Received on 2008-01-25