You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
712 B
Plaintext
24 lines
712 B
Plaintext
if [ -f "${LIB_DIR}/libcrypto.a" ]; then
|
|
echo "lib exists already in ${LIB_DIR}. If you want to rebuild it, delete the existing one."
|
|
exit 0
|
|
fi
|
|
|
|
OpenSSL_DIR="${TMP_DIR}/openssl"
|
|
if [ ! -d "${OpenSSL_DIR}" ]; then
|
|
git clone -b OpenSSL_1_1_1i https://github.com/openssl/openssl.git
|
|
fi
|
|
pushd "${OpenSSL_DIR}"
|
|
OPEN_SSL_TARGET="Not set"
|
|
if [ ${ARCH} == "arm64" ]; then
|
|
OPEN_SSL_TARGET=darwin64-arm64-cc
|
|
elif [ ${ARCH} = "x86_64" ]; then
|
|
OPEN_SSL_TARGET=darwin64-x86_64-cc
|
|
else
|
|
echo "unhandled ARCH"
|
|
exit 1
|
|
fi
|
|
./Configure --prefix=${CURRENT_LIB_DIR} --openssldir=${CURRENT_LIB_DIR}/ssl ${OPEN_SSL_TARGET}
|
|
make clean
|
|
make
|
|
make install
|
|
popd |