From 16728b5195a7604b37cc6e4ba6885792c786c283 Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Thu, 1 Mar 2018 17:25:47 +0300 Subject: [PATCH] Escape to build openssl twice --- Common/3dParty/openssl/build.sh | 7 +++++-- Common/3dParty/openssl/fetch.sh | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Common/3dParty/openssl/build.sh b/Common/3dParty/openssl/build.sh index 29f47b2032..0a6ad97ca0 100755 --- a/Common/3dParty/openssl/build.sh +++ b/Common/3dParty/openssl/build.sh @@ -29,6 +29,9 @@ fi echo "$platform$arch" -perl ./Configure $platform$arch -./config +if [ ! -f Makefile ]; then + perl ./Configure $platform$arch + ./config +fi + make diff --git a/Common/3dParty/openssl/fetch.sh b/Common/3dParty/openssl/fetch.sh index 400bb0a794..f31e20b980 100755 --- a/Common/3dParty/openssl/fetch.sh +++ b/Common/3dParty/openssl/fetch.sh @@ -5,4 +5,6 @@ SCRIPTPATH=$(dirname "$SCRIPT") cd "$SCRIPTPATH" -git clone https://github.com/openssl/openssl.git +if [ ! -d openssl ]; then + git clone https://github.com/openssl/openssl.git +fi