cURL / Mailing Lists / curl-library / Single Mail

curl-library

Building universal libcurl on Mac OS X 10.5

From: Leo <leo.r_at_rogers.com>
Date: Sat, 05 Mar 2011 18:38:38 -0500

Is there an established way of building curl as Universal Binary?

Why I need it:

I'm trying to implement the support for FTP with SSL/TLS. The version of
curl included with Mac OS 10.5 doesn't support it, while the one
included with 10.6 - does.

I want to support both systems.

Building curl as is creates only an Intel version (I tried both 7.19.7
and 7.21.4).

I did search on this subject and found various suggestions, but nothing
like a single straightforward way to do this.

I tried to run ./configure using these options:

env CFLAGS="-O -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch
ppc7400 -arch ppc64" LDFLAGS="-arch i386 -arch ppc7400 -arch ppc64"
./configure --disable-dependency-tracking --prefix /curl-7.21.4-test

However, when I try to run make, it stops with this error:

In file included from setup.h:126,
from file.c:23:
../include/curl/curlrules.h:143: error: size of array __curl_rule_01__
is negative
lipo: can't figure out the architecture type of:
/var/folders/pC/pCViCSlqH44CRRuB6H6ahk+++TI/-Tmp-//cc16PTNQ.out
make[2]: *** [libcurl_la-file.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Thanks for any info,

Leo

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