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: Fri, 28 Aug 2015 13:53:53 -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
>

  $ grep -i "conf" config.log | grep "\.h" | egrep -v "(checking|/\*)"
  conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
  conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
  conftest.c:45:21: error: windows.h: No such file or directory
  configure:20344: found both libz and libz.h header
  conftest.c:85:20: error: malloc.h: No such file or directory
  conftest.c:126:20: error: termio.h: No such file or directory
  conftest.c:130:16: error: io.h: No such file or directory
  conftest.c:132:23: error: sys/utime.h: No such file or directory
  conftest.c:134:20: error: socket.h: No such file or directory
  conftest.c:253:21: error: stropts.h: No such file or directory
  config.status:1489: creating lib/curl_config.h
  config.status:1489: creating include/curl/curlbuild.h
  ## confdefs.h. ##

For good measure, I think I am going to try the trick with
lib/curl_config.h, too.

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