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