From 09db6151e47ee0f4f9a1f1b7488b19fbfee7fdae Mon Sep 17 00:00:00 2001 From: clear-xmr Date: Fri, 1 Apr 2022 10:58:46 +0200 Subject: [PATCH] build: android: always clone zlib --- scripts/android/build_openssl.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/android/build_openssl.sh b/scripts/android/build_openssl.sh index 572925056..c5dad3d41 100755 --- a/scripts/android/build_openssl.sh +++ b/scripts/android/build_openssl.sh @@ -11,9 +11,8 @@ ZLIB_DIR=$WORKDIR/zlib ZLIB_TAG=v1.2.11 ZLIB_COMMIT_HASH="cacf7f1d4e3d44d871b605da3b647f07d718623f" -if [ ! -d "$ZLIB_DIR" ] ; then - git clone -b $ZLIB_TAG --depth 1 https://github.com/madler/zlib $ZLIB_DIR -fi +rm -rf $ZLIB_DIR +git clone -b $ZLIB_TAG --depth 1 https://github.com/madler/zlib $ZLIB_DIR cd $ZLIB_DIR git reset --hard $ZLIB_COMMIT_HASH CC=clang CXX=clang++ ./configure --static