cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Jeffrey Walton <noloader_at_gmail.com>
Date: Thu, 27 Aug 2015 19:08:15 -0400

On Thu, Aug 27, 2015 at 7:02 PM, Geoff Beier <geoff_at_redhoundsoftware.com> 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.
>

Thanks Geoff. Yes, its OS X.

That's actually a very nifty idea. I'm going to use that on my OpenSSL
builds, too. Thanks.

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