Skip to content

Commit 8a6eef5

Browse files
committed
bug fix
1 parent 85ec79a commit 8a6eef5

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

tools/_shared.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22

33
TOOLS_ROOT=`pwd`
4-
ARCHS=("android" "android-armeabi" "android64-aarch64" "android-x86" "android64" "android-mips" "android-mips64")
54

65
#
76
# Warning !!! Android Build !!!
@@ -15,9 +14,18 @@ ARCHS=("android" "android-armeabi" "android64-aarch64" "android-x86" "android64"
1514
#
1615
# So if you not need 64 bit arch api level 16 is better
1716
#
18-
ANDROID_API=${ANDROID_API:-16}
17+
# But but but cURL could not build by android-20 and earlier :-(
18+
# So you can build openssl with android-16 then build cURL with android-21
19+
#
20+
if [ "${1}" == "cURL" ]; then
21+
ANDROID_API=${ANDROID_API:-21}
22+
else
23+
ANDROID_API=${ANDROID_API:-16}
24+
fi
25+
ARCHS=("android" "android-armeabi" "android-x86" "android-mips")
1926
ABIS=("armeabi" "armeabi-v7a" "x86" "mips")
2027
# ANDROID_API=${ANDROID_API:-21}
28+
# ARCHS=("android" "android-armeabi" "android64-aarch64" "android-x86" "android64" "android-mips" "android-mips64")
2129
# ABIS=("armeabi" "armeabi-v7a" "arm64-v8a" "x86" "x86_64" "mips" "mips64")
2230
NDK=${ANDROID_NDK}
2331

tools/build-curl4android.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
set -u
1818

19-
source ./_shared.sh
19+
source ./_shared.sh cURL
2020

2121
# Setup architectures, library name and other vars + cleanup from previous runs
2222
TOOLS_ROOT=`pwd`
23-
LIB_NAME="curl-7.53.1"
23+
LIB_NAME="curl-7.54.1"
2424
LIB_DEST_DIR=${TOOLS_ROOT}/libs
2525
[ -f ${LIB_NAME}.tar.gz ] || wget https://curl.haxx.se/download/${LIB_NAME}.tar.gz
2626
# Unarchive library, then configure and make for specified architectures

0 commit comments

Comments
 (0)