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:
parent
4f5f9bdffb
commit
ef38359dbc
1 changed files with 20 additions and 0 deletions
20
scripts/build.openssl3.sh
Normal file
20
scripts/build.openssl3.sh
Normal 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 ..
|
Loading…
Add table
Add a link
Reference in a new issue