cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Is it safe to build the cURL library as multi-arch?

From: Ryan Schmidt <curl-2015_at_ryandesign.com>
Date: Fri, 28 Aug 2015 19:52:13 -0500

On Aug 27, 2015, at 6:02 PM, Geoff Beier wrote:

> Assuming you're talking about OS X, it wasn't last time I looked into it. curlbuild.h differed.
>
> What we do is build one with -arch x86_64, copy curlbuild.h to curlbuild64.h, build one with -arch i386, copy curlbuild.h to curlbuild32.h, lipo the libraries together, then create a new curlbuild.h
>
> cat > include/curl/curlbuild.h <<EOF
> #ifdef __LP64__
> #include "curlbuild64.h"
> #else
> #include "curlbuild32.h"
> #endif
> EOF
>
>
> This still works in our build system. I have not revisited it to determine whether it's still necessary.

This is essentially what MacPorts does when it builds curl. I just verified that even with curl 7.44.0 there are still vast differences in the copies of curlbuild.h built for i386 and x86_64 such that this procedure is still necessary.

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