2024-03-21 02:13:01 +07:00
|
|
|
#!/bin/sh -e
|
2022-03-07 00:27:49 +07:00
|
|
|
|
2024-10-20 09:49:06 +07:00
|
|
|
OPENSSL_VERSION="3.0.15"
|
2022-03-07 00:27:49 +07:00
|
|
|
|
|
|
|
mkdir -p deps
|
|
|
|
mkdir -p deps/include
|
|
|
|
mkdir -p deps/lib
|
|
|
|
|
|
|
|
mkdir -p build && cd build
|
|
|
|
|
2024-07-24 21:02:53 +07:00
|
|
|
wget https://github.com/openssl/openssl/releases/download/openssl-${OPENSSL_VERSION}/openssl-${OPENSSL_VERSION}.tar.gz -O openssl-${OPENSSL_VERSION}.tar.gz
|
2022-03-07 00:27:49 +07:00
|
|
|
tar -xzf openssl-${OPENSSL_VERSION}.tar.gz
|
|
|
|
|
|
|
|
cd openssl-${OPENSSL_VERSION}
|
|
|
|
./config -no-shared -no-asm -no-zlib -no-comp -no-dgram -no-filenames -no-cms
|
|
|
|
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 ..
|