3 echo "Downloading OpenSSL"
4 if ! curl -L -k -s -o openssl-1.1.1d.tar.gz https://www.openssl.org/source/openssl-1.1.1d.tar.gz;
6 echo "Failed to download OpenSSL"
10 echo "Unpacking OpenSSL"
11 rm -rf ./openssl-1.1.1d
12 if ! tar -xf openssl-1.1.1d.tar.gz;
14 echo "Failed to unpack OpenSSL"
18 cd openssl-1.1.1d || exit 1
20 if ! cp ../contrib/android/15-android.conf Configurations/; then
21 echo "Failed to copy OpenSSL Android config"
25 echo "Configuring OpenSSL"
26 if ! ./Configure "$OPENSSL_HOST" no-comp no-asm no-hw no-engine shared \
27 --prefix="$ANDROID_PREFIX" --openssldir="$ANDROID_PREFIX"; then
28 echo "Failed to configure OpenSSL"
32 echo "Building OpenSSL"
34 echo "Failed to build OpenSSL"
38 echo "Installing OpenSSL"
39 if ! make install_sw; then
40 echo "Failed to install OpenSSL"