occlum/demos/grpc/grpc_tls/download_and_install_openssl.sh
2022-01-05 15:09:54 +08:00

18 lines
429 B
Bash
Executable File

#!/bin/bash
#copyright@antfinancial:adopted from a script written by geding
set -e
git clone http://github.com/openssl/openssl
cd openssl
git checkout tags/OpenSSL_1_1_1
CC=occlum-gcc ./config \
--prefix=/usr/local/occlum/x86_64-linux-musl \
--openssldir=/usr/local/occlum/x86_64-linux-musl/ssl \
--with-rand-seed=rdcpu \
no-async no-zlib
make -j$(nproc)
make install
echo "build and install openssl success!"