cURL / Mailing Lists / curl-library / Single Mail

curl-library

Building 32-bit Libcurl on Mac OS X 10.6

From: Jeremy Hughes <jeremy_at_softpress.com>
Date: Thu, 26 Aug 2010 15:54:24 +0100

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.

The library has to be 32-bit because it will be linked with an
application that is currently 32-bit. Libcurl and curl are both pre-
installed on Mac OS X 10.5 and 10.6, but the system versions do not
support SFTP.

The reason I am trying to build Libcurl on 10.6 is because the Snow
Leopard version of curl appears to use the Mac keychain when
authenticating SSL certificates. By contrast, the 10.5 (Leopard) version
of curl sets CURLOPT_CAINFO to point to /usr/share/curl-ca-bundle.crt
(which doesn't exist on 10.6).

I'd like to get the same functionality for a statically linked version
of Libcurl - set CURLOPT_CAINFO to point to /usr/share/curl-ca-
bundle.crt under 10.5 (this part is easy) and use the keychain under 10.6.

Jeremy

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