@@ -38,6 +38,7 @@ CURL_VERSION="curl-7.74.0"
38
38
nohttp2=" 0"
39
39
catalyst=" 0"
40
40
FORCE_SSLV3=" no"
41
+ CONF_FLAGS=" --without-libidn2 --disable-shared --enable-static -with-random=/dev/urandom"
41
42
42
43
# Set minimum OS versions for target
43
44
MACOS_X86_64_VERSION=" " # Empty = use host version
@@ -244,7 +245,7 @@ buildMac()
244
245
245
246
pushd . > /dev/null
246
247
cd " ${CURL_VERSION} "
247
- ./configure -prefix=" /tmp/${CURL_VERSION} -${ARCH} " --disable-shared --enable-static -with-random=/dev/urandom --with-ssl=${OPENSSL} /Mac ${NGHTTP2CFG} --host=${HOST} & > " /tmp/${CURL_VERSION} -${ARCH} .log"
248
+ ./configure -prefix=" /tmp/${CURL_VERSION} -${ARCH} " $CONF_FLAGS --with-ssl=${OPENSSL} /Mac ${NGHTTP2CFG} --host=${HOST} & > " /tmp/${CURL_VERSION} -${ARCH} .log"
248
249
249
250
make -j${CORES} >> " /tmp/${CURL_VERSION} -${ARCH} .log" 2>&1
250
251
make install >> " /tmp/${CURL_VERSION} -${ARCH} .log" 2>&1
@@ -294,9 +295,9 @@ buildCatalyst()
294
295
echo -e " ${subbold} Building ${CURL_VERSION} for ${archbold}${ARCH}${dim} ${BITCODE} (Mac Catalyst iOS ${CATALYST_IOS} )"
295
296
296
297
if [[ " ${ARCH} " == " arm64" ]]; then
297
- ./configure -prefix=" /tmp/${CURL_VERSION} -catalyst-${ARCH} -${BITCODE} " --disable-shared --enable-static -with-random=/dev/urandom --with-ssl=${OPENSSL} /catalyst ${NGHTTP2CFG} --host=" arm-apple-darwin" & > " /tmp/${CURL_VERSION} -catalyst-${ARCH} -${BITCODE} .log"
298
+ ./configure -prefix=" /tmp/${CURL_VERSION} -catalyst-${ARCH} -${BITCODE} " $CONF_FLAGS --with-ssl=${OPENSSL} /catalyst ${NGHTTP2CFG} --host=" arm-apple-darwin" & > " /tmp/${CURL_VERSION} -catalyst-${ARCH} -${BITCODE} .log"
298
299
else
299
- ./configure -prefix=" /tmp/${CURL_VERSION} -catalyst-${ARCH} -${BITCODE} " --disable-shared --enable-static -with-random=/dev/urandom --with-ssl=${OPENSSL} /catalyst ${NGHTTP2CFG} --host=" ${ARCH} -apple-darwin" & > " /tmp/${CURL_VERSION} -catalyst-${ARCH} -${BITCODE} .log"
300
+ ./configure -prefix=" /tmp/${CURL_VERSION} -catalyst-${ARCH} -${BITCODE} " $CONF_FLAGS --with-ssl=${OPENSSL} /catalyst ${NGHTTP2CFG} --host=" ${ARCH} -apple-darwin" & > " /tmp/${CURL_VERSION} -catalyst-${ARCH} -${BITCODE} .log"
300
301
fi
301
302
302
303
make -j${CORES} >> " /tmp/${CURL_VERSION} -catalyst-${ARCH} -${BITCODE} .log" 2>&1
@@ -339,9 +340,9 @@ buildIOS()
339
340
export LDFLAGS=" -arch ${ARCH} -isysroot ${CROSS_TOP} /SDKs/${CROSS_SDK} -L${OPENSSL} /${PLATFORMDIR} /lib ${NGHTTP2LIB} "
340
341
341
342
if [[ " ${ARCH} " == * " arm64" * || " ${ARCH} " == " arm64e" ]]; then
342
- ./configure -prefix=" /tmp/${CURL_VERSION} -iOS-${ARCH} -${BITCODE} " --disable-shared --enable-static -with-random=/dev/urandom --with-ssl=${OPENSSL} /${PLATFORMDIR} ${NGHTTP2CFG} --host=" arm-apple-darwin" & > " /tmp/${CURL_VERSION} -iOS-${ARCH} -${BITCODE} .log"
343
+ ./configure -prefix=" /tmp/${CURL_VERSION} -iOS-${ARCH} -${BITCODE} " $CONF_FLAGS --with-ssl=${OPENSSL} /${PLATFORMDIR} ${NGHTTP2CFG} --host=" arm-apple-darwin" & > " /tmp/${CURL_VERSION} -iOS-${ARCH} -${BITCODE} .log"
343
344
else
344
- ./configure -prefix=" /tmp/${CURL_VERSION} -iOS-${ARCH} -${BITCODE} " --disable-shared --enable-static -with-random=/dev/urandom --with-ssl=${OPENSSL} /${PLATFORMDIR} ${NGHTTP2CFG} --host=" ${ARCH} -apple-darwin" & > " /tmp/${CURL_VERSION} -iOS-${ARCH} -${BITCODE} .log"
345
+ ./configure -prefix=" /tmp/${CURL_VERSION} -iOS-${ARCH} -${BITCODE} " $CONF_FLAGS --with-ssl=${OPENSSL} /${PLATFORMDIR} ${NGHTTP2CFG} --host=" ${ARCH} -apple-darwin" & > " /tmp/${CURL_VERSION} -iOS-${ARCH} -${BITCODE} .log"
345
346
fi
346
347
347
348
make -j${CORES} >> " /tmp/${CURL_VERSION} -iOS-${ARCH} -${BITCODE} .log" 2>&1
@@ -393,9 +394,9 @@ buildIOSsim()
393
394
echo -e " ${subbold} Building ${CURL_VERSION} for ${PLATFORM} ${IOS_SDK_VERSION} ${archbold}${ARCH}${dim} ${BITCODE} (iOS ${IOS_MIN_SDK_VERSION} )"
394
395
395
396
if [[ " ${ARCH} " == * " arm64" * || " ${ARCH} " == " arm64e" ]]; then
396
- ./configure -prefix=" /tmp/${CURL_VERSION} -iOS-simulator-${ARCH} -${BITCODE} " --disable-shared --enable-static -with-random=/dev/urandom --with-ssl=${OPENSSL} /${PLATFORMDIR} ${NGHTTP2CFG} --host=" arm-apple-darwin" & > " /tmp/${CURL_VERSION} -iOS-simulator-${ARCH} -${BITCODE} .log"
397
+ ./configure -prefix=" /tmp/${CURL_VERSION} -iOS-simulator-${ARCH} -${BITCODE} " $CONF_FLAGS --with-ssl=${OPENSSL} /${PLATFORMDIR} ${NGHTTP2CFG} --host=" arm-apple-darwin" & > " /tmp/${CURL_VERSION} -iOS-simulator-${ARCH} -${BITCODE} .log"
397
398
else
398
- ./configure -prefix=" /tmp/${CURL_VERSION} -iOS-simulator-${ARCH} -${BITCODE} " --disable-shared --enable-static -with-random=/dev/urandom --with-ssl=${OPENSSL} /${PLATFORMDIR} ${NGHTTP2CFG} --host=" ${ARCH} -apple-darwin" & > " /tmp/${CURL_VERSION} -iOS-simulator-${ARCH} -${BITCODE} .log"
399
+ ./configure -prefix=" /tmp/${CURL_VERSION} -iOS-simulator-${ARCH} -${BITCODE} " $CONF_FLAGS --with-ssl=${OPENSSL} /${PLATFORMDIR} ${NGHTTP2CFG} --host=" ${ARCH} -apple-darwin" & > " /tmp/${CURL_VERSION} -iOS-simulator-${ARCH} -${BITCODE} .log"
399
400
fi
400
401
401
402
make -j${CORES} >> " /tmp/${CURL_VERSION} -iOS-simulator-${ARCH} -${BITCODE} .log" 2>&1
@@ -439,7 +440,7 @@ buildTVOS()
439
440
440
441
echo -e " ${subbold} Building ${CURL_VERSION} for ${PLATFORM} ${TVOS_SDK_VERSION} ${archbold}${ARCH}${dim} (tvOS ${TVOS_MIN_SDK_VERSION} )"
441
442
442
- ./configure -prefix=" /tmp/${CURL_VERSION} -tvOS-${ARCH} " --host=" arm-apple-darwin" --disable-shared -with-random=/dev/urandom --disable-ntlm-wb --with-ssl=" ${OPENSSL} /tvOS" ${NGHTTP2CFG} & > " /tmp/${CURL_VERSION} -tvOS-${ARCH} .log"
443
+ ./configure -prefix=" /tmp/${CURL_VERSION} -tvOS-${ARCH} " --host=" arm-apple-darwin" $CONF_FLAGS --disable-shared -with-random=/dev/urandom --disable-ntlm-wb --with-ssl=" ${OPENSSL} /tvOS" ${NGHTTP2CFG} & > " /tmp/${CURL_VERSION} -tvOS-${ARCH} .log"
443
444
444
445
# Patch to not use fork() since it's not available on tvOS
445
446
LANG=C sed -i -- ' s/define HAVE_FORK 1/define HAVE_FORK 0/' " ./lib/curl_config.h"
@@ -488,9 +489,9 @@ buildTVOSsim()
488
489
echo -e " ${subbold} Building ${CURL_VERSION} for ${PLATFORM} ${TVOS_SDK_VERSION} ${archbold}${ARCH}${dim} (tvOS SIM ${TVOS_MIN_SDK_VERSION} )"
489
490
490
491
if [[ " ${ARCH} " == " arm64" ]]; then
491
- ./configure --prefix=" /tmp/${CURL_VERSION} -tvOS-simulator-${ARCH} " --host=" arm-apple-darwin" --disable-shared -with-random=/dev/urandom --disable-ntlm-wb --with-ssl=" ${OPENSSL} /${PLATFORMDIR} " ${NGHTTP2CFG} & > " /tmp/${CURL_VERSION} -tvOS-simulator-${ARCH} .log"
492
+ ./configure --prefix=" /tmp/${CURL_VERSION} -tvOS-simulator-${ARCH} " --host=" arm-apple-darwin" $CONF_FLAGS --disable-shared -with-random=/dev/urandom --disable-ntlm-wb --with-ssl=" ${OPENSSL} /${PLATFORMDIR} " ${NGHTTP2CFG} & > " /tmp/${CURL_VERSION} -tvOS-simulator-${ARCH} .log"
492
493
else
493
- ./configure --prefix=" /tmp/${CURL_VERSION} -tvOS-simulator-${ARCH} " --host=" ${ARCH} -apple-darwin" --disable-shared -with-random=/dev/urandom --disable-ntlm-wb --with-ssl=" ${OPENSSL} /${PLATFORMDIR} " ${NGHTTP2CFG} & > " /tmp/${CURL_VERSION} -tvOS-simulator-${ARCH} .log"
494
+ ./configure --prefix=" /tmp/${CURL_VERSION} -tvOS-simulator-${ARCH} " --host=" ${ARCH} -apple-darwin" $CONF_FLAGS --disable-shared -with-random=/dev/urandom --disable-ntlm-wb --with-ssl=" ${OPENSSL} /${PLATFORMDIR} " ${NGHTTP2CFG} & > " /tmp/${CURL_VERSION} -tvOS-simulator-${ARCH} .log"
494
495
fi
495
496
496
497
# Patch to not use fork() since it's not available on tvOS
0 commit comments