cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cross compilation of cURL for Processor: Samsung S3C44B0 ARM

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 5 Jun 2008 10:34:16 -0700

On Thu, Jun 05, 2008 at 10:03:08AM -0700, wpc wrote:
> am trying to cross compile cURL for Samsung S3C44B0 processor.
>
> my configure script is
>
> #!/bin/sh
> export LIBS="/home/locat/lib3000s/lib/liblmt3000s_col_12.a -Wl,-elf2flt -static"
> export AR=/usr/local/bin/arm-elf-ar
> export AS=/usr/local/bin/arm-elf-as
> export LD=/usr/local/bin/arm-elf-ld
> export RANLIB=/usr/local/bin/arm-elf-ranlib
> export CC=/usr/local/bin/arm-elf-gcc
> export NM=/usr/local/bin/arm-elf-nm
>
> ./configure --disable-shared --without-libssh2 --without-gnutls --without-nss --without-ca-bundle --without-ca-path --disable-ftp --disable-file --disable-ldap --disable-ldaps --disable-dict --disable-telnet --disable-tftp --disable-ipv6 --disable-nonblocking --disable-thread --disable-ares --enable-verbose --disable-sspi --disable-debug --disable-crypto-auth --enable-cookies --disable-hidden-symbols --without-zlib --without-ssl --target=arm-elf --host=arm-elf --build=i386-pc-linux-gnu --prefix=/home/locat/curl-7.18.2/CURLARM
[...]
> :configure:3328: error: C compiler cannot create executables

This means that your compiler isn't able to compile the sample program for
some reason. Chances are, it has to do with the LIBS variable you've
supplied. Does it work when you don't set LIBS? LIBS isn't designed to
contain arbitrary compiler flags, by the way. Try using LDFLAGS instead.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-06-05