cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: use libcurl source files directly rather than link with library

From: Jeremy Hughes <jeremy_at_softpress.com>
Date: Wed, 18 May 2011 11:42:42 +0100

Daniel Stenberg (17/5/11, 22:48) said:

>(This whole thread is an excellent show case why I am happy I don't do any
>development on or for Mac OS X.)

I don't think you'd have any problems if you did.

Libcurl works fine for me on Mac OS X - thanks for all your work!

>I don't know much about building 32/64 bit versions on Mac, but certainly
>there is docs out there for this already?

From an earlier thread:

Michael Wood (26/8/10, 16:27) said:

>On 26 August 2010 16:54, Jeremy Hughes <jeremy_at_softpress.com> wrote:
>> Hi,
>>
>> I'm trying to build a 32-bit version of Libcurl (as a static library) on
>> Mac OS X 10.6 (Snow Leopard).
>>
>> Previously, I've built Libcurl on Mac OS X 10.5 (Leopard) using the
>> following commands:
>>
>> ./configure --with-libssh2=[path to LibSSH library]
>> make
>>
>> This creates a 32-bit library which works fine on Mac OS X 10.5, but if
>> I build Libcurl on 10.6 it defaults to 64-bit.
>>
>> I think I probably need to provide an option to ./configure, but I
>> haven't managed to find anything so far - sorry if I've missed something
>> that should be obvious.
>
>See if this works:
>
>CFLAGS="-arch i386" ./configure ...

This works for me.

Jeremy

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-18