cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Cross-compiling libcurl x86 on Linux x64

From: Daniel Egger <daniel_at_eggers-club.de>
Date: Fri, 17 Sep 2010 16:56:48 +0200

On 17.09.2010, at 16:11, Tom Edwards wrote:

>> How do you normally do it? If it's a compiler flag, have you tried ./configure with a CFLAGS= argument?

> Normally I'd do CFLAGS=-m32, yes, or edit the makefile to automate that effect. That doesn't help here for some reason.

So essentially you're trying to cross compile a 32 Bit binary with a
64 Bit compiler using autoconf scripts? Interesting, never tried that before.

I build my cross-binaries (of curl) like this:
  CC=$(CROSS_GCC) CFLAGS="$(CFLAGS)" $(SOURCE)/configure --build=$(HOST_TOOLCHAIN) --host=$(CROSS_TOOLCHAIN)

Servus,
      Daniel

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-09-17