add script to D/L & build OpenSSL 3.0.1

The current OpenSSL script downloads and builds OpenSSL 1.1.1(x) -- this script downloads and builds the 3.x branch (currently at 3.0.1)
This commit is contained in:
hilga007 2022-02-20 20:22:53 -08:00 committed by GitHub
parent 4f5f9bdffb
commit ef38359dbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
scripts/build.openssl3.sh Normal file
View file

@ -0,0 +1,20 @@
#!/bin/bash -e
OPENSSL_VERSION="3.0.1"
mkdir -p deps
mkdir -p deps/include
mkdir -p deps/lib
mkdir -p build && cd build
wget https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz -O openssl-${OPENSSL_VERSION}.tar.gz
tar -xzf openssl-${OPENSSL_VERSION}.tar.gz
cd openssl-${OPENSSL_VERSION}
./config -no-shared -no-asm -no-zlib -no-comp -no-dgram -no-filenames -enable-fips
make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu)
cp -fr include ../../deps
cp libcrypto.a ../../deps/lib
cp libssl.a ../../deps/lib
cd ..