iOS: Update libcurl
This commit is contained in:
parent
d7befa1a30
commit
d8281c4320
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
. sdk.sh
|
||||
CURL_VERSION=7.60.0
|
||||
CURL_VERSION=7.64.0
|
||||
|
||||
if [ ! -d libcurl-src ]; then
|
||||
wget https://curl.haxx.se/download/curl-$CURL_VERSION.tar.gz
|
||||
|
@ -12,16 +12,24 @@ fi
|
|||
|
||||
cd libcurl-src
|
||||
|
||||
CC=$IOS_CC CFLAGS=$IOS_FLAGS \
|
||||
./configure --host=arm-apple-darwin --prefix=/ --disable-shared --enable-static \
|
||||
--disable-debug --disable-verbose --disable-dependency-tracking --disable-ftp \
|
||||
--disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict \
|
||||
--disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smtp \
|
||||
--disable-gopher --disable-sspi --disable-manual --disable-zlib --without-zlib \
|
||||
--with-darwinssl
|
||||
make -j$(sysctl -n hw.ncpu)
|
||||
# build once for armv7, once for arm64
|
||||
for x in arm64 armv7; do
|
||||
make distclean >/dev/null || true
|
||||
CC=$IOS_CC CFLAGS=${IOS_FLAGS_LUA/-arch $x/} \
|
||||
./configure --host=arm-apple-darwin --prefix=/ --disable-shared --enable-static \
|
||||
--disable-debug --disable-verbose --disable-dependency-tracking --disable-ftp \
|
||||
--disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict \
|
||||
--disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smtp \
|
||||
--disable-gopher --disable-sspi --disable-manual --disable-zlib --without-zlib \
|
||||
--with-darwinssl
|
||||
make -j$(sysctl -n hw.ncpu)
|
||||
cp -f lib/.libs/libcurl.a templib_$x.a
|
||||
done
|
||||
|
||||
mkdir -p ../libcurl
|
||||
make DESTDIR=$PWD/../libcurl install
|
||||
# merge libraries
|
||||
rm ../libcurl/lib/libcurl.a
|
||||
lipo templib_*.a -create -output ../libcurl/lib/libcurl.a
|
||||
|
||||
echo "libcurl build successful"
|
||||
|
|
Loading…
Reference in New Issue