From 8b8f0aab4405760e6804bdcc1ac68a1355d8cc7b Mon Sep 17 00:00:00 2001 From: kynex7510 Date: Fri, 31 May 2024 20:03:14 +0200 Subject: [PATCH] Fix macos build --- build_macos.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 build_macos.sh diff --git a/build_macos.sh b/build_macos.sh old mode 100644 new mode 100755 index 9b1eca7..52e802d --- a/build_macos.sh +++ b/build_macos.sh @@ -4,6 +4,8 @@ ROOT=$PWD BUILD_PATH="$ROOT/build/macos" OUT_PATH="$ROOT/out/macos" +export MACOSX_DEPLOYMENT_TARGET="10.15" + # Remove previous output files rm -rf "$OUT_PATH" @@ -64,7 +66,7 @@ mkdir -p "$BUILD_PATH/curl" cd "$BUILD_PATH/curl" cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$OUT_PATH" -DBUILD_CURL_EXE=OFF \ - -DCURL_USE_OPENSSL=ON -DOPENSSL_INCLUDE_DIR="$OUT_PATH/include" \ + -DCURL_DISABLE_LDAP=ON -DCURL_USE_OPENSSL=ON -DOPENSSL_INCLUDE_DIR="$OUT_PATH/include" \ -DOPENSSL_CRYPTO_LIBRARY="$OUT_PATH/lib/libcrypto.a" -DOPENSSL_SSL_LIBRARY="$OUT_PATH/lib/libssl.a" \ -DOPENSSL_LIBRARIES="$OUT_PATH/lib/libcrypto.a;$OUT_PATH/lib/libssl.a" \ -DUSE_NGHTTP2=ON -DNGHTTP2_INCLUDE_DIR="$OUT_PATH/include" -DNGHTTP2_LIBRARY="$OUT_PATH/lib/libnghttp2.a" \