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