cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Cross-compiling libcurl x86 on Linux x64

From: Tom Edwards <t_edwards_at_btinternet.com>
Date: Fri, 17 Sep 2010 00:35:03 +0100

  On 16/09/2010 10:57, Dan Fandrich wrote:
> On Thu, Sep 16, 2010 at 10:42:03PM +0100, Tom Edwards wrote:
>> Like I said, I always get a 64-bit binary. I don't know what the -devel
>> libraries are, but I've happily built other 32-bit binaries and I'm not
>> getting any actual errors from libcurl's make. Here are the commands I'm
>> running:
> You need the 32-bit developer packages for any 32 bit libraries you want
> curl to use. It sounds like you have at least a 32 bit glibc available if
> you're able to build some 32 bit libraries, but libcurl will use OpenSSL,
> LDAP, ZLIB, IDN and other libraries and you need 32 bit versions of those
> to have libcurl use them. I don't know what will happen if you have only
> 32 bit glibc and not the others; I would expect it to build a 32-bit curl
> with minimal features.
>
>> $ ./configure --host i686-pc-linux-gnu
>> $ make
>> $ file ./lib/.libs/libcurl.so.4.2.0
>> ./lib/.libs/libcurl.so.4.2.0: ELF 64-bit LSB shared object, x86-64,
>> version 1 (SYSV), dynamically linked, not stripped
> What does one of the gcc lines look like as it compiles one of the .c
> files?
I'm not interested in those extra dongles, all I want is HTTP. We'll
have to see what it says about the stuff I don't have when it actually
tries to build in 32-bit. :-)

A line from terminal:
> libtool: compile: gcc -DHAVE_CONFIG_H -I../include/curl -I../include
> -I../include -I../lib -I../lib -g0 -O2 -Wno-system-headers -MT smtp.lo
> -MD -MP -MF .deps/smtp.Tpo -c smtp.c -fPIC -DPIC -o .libs/smtp.o

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-17