views:

27

answers:

1

I've cross-compiled the bulk of my 32-bit code on my x64 Ubuntu install, but I can't work out how to do the same trick with libcurl.

I've tried many permutations of --host and/or --build i486, x86, etc. but none have helped. I've also tried editing the makefiles to include gcc's -m32 flag manually, but it never shows up when I run them.

What should I be doing?

A: 

It would help if you gave us an error message. I've had issues on Ubuntu x64 systems compiling 32-bit code with 'ld' errors.. I solved it by adding LDEMULATION=elf_i386 to my environment.

jcopenha
There is no error message. The compile is successful - it just produces a 64bit binary. I've taken this to the curl mailing list, FYI (http://curl.haxx.se/mail/lib-2010-09/0129.html).
Artfunkel