diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-07-25 11:29:09 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-07-25 11:29:09 +0800 |
commit | 18e5a61ee59c6136c1ddad20bf663e35c84fbaad (patch) | |
tree | 16fd7c6a816f1dd795e849fc5e669b5c8291838b /README.md | |
parent | 18a02a0c8f7a73cd44e8fe4f3c3b23a9195f2730 (diff) |
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.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |