From 18e5a61ee59c6136c1ddad20bf663e35c84fbaad Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Thu, 25 Jul 2024 11:29:09 +0800 Subject: cURL build instructions that work on AppleClang 15 It has a newer default of something higher than C99, which would cause an error of implicit int at configuring stage, so it wasn't about some missing library for runtime. It's also not necessary to specify the path to nghttp2 (or zlib) since it seems to have already been detected. We might as well lower the minimum macOS requirement here to 11. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 63e3c9c087..f71168fa8a 100644 --- a/README.md +++ b/README.md @@ -94,9 +94,9 @@ $ make -j`sysctl -n hw.ncpu` $ cd ../../../../3p-curl/curl $ mkdir -p build/aarch64-apple-darwin`uname -r` $ cd build/aarch64-apple-darwin`uname -r` -$ export CFLAGS="-arch arm64 -mmacosx-version-min=12.0" +$ export CFLAGS="-arch arm64 -mmacosx-version-min=11.0 -std=c90" $ sudo port deactivate openssl3 -$ ../../configure --host=aarch64-apple-darwin`uname -r` --disable-alt-svc --disable-dict --disable-doh --disable-file --disable-gopher --disable-headers-api --disable-hsts --disable-imap --disable-ldap --disable-ldaps --disable-libcurl-option --disable-manual --disable-mqtt --disable-ntlm --disable-ntlm-wb --disable-pop3 --disable-rtsp --disable-shared --disable-smb --disable-smtp --disable-sspi --disable-telnet --disable-tftp --disable-tls-srp --disable-unix-sockets --disable-verbose --disable-versioned-symbols --enable-threaded-resolver --with-ssl=/opt/local/libexec/openssl11 --with-nghttp2=/opt/local --without-libidn2 --without-libpsl +$ ../../configure --host=aarch64-apple-darwin`uname -r` --disable-alt-svc --disable-dict --disable-doh --disable-file --disable-gopher --disable-headers-api --disable-hsts --disable-imap --disable-ldap --disable-ldaps --disable-libcurl-option --disable-manual --disable-mqtt --disable-ntlm --disable-ntlm-wb --disable-pop3 --disable-rtsp --disable-shared --disable-smb --disable-smtp --disable-sspi --disable-telnet --disable-tftp --disable-tls-srp --disable-unix-sockets --disable-verbose --disable-versioned-symbols --enable-threaded-resolver --with-ssl=/opt/local/libexec/openssl11 --without-libidn2 --without-libpsl $ make -j`sysctl -n hw.ncpu` $ sudo port activate openssl3 $ unset CFLAGS -- cgit v1.2.3