2024-03-21 02:13:01 +07:00
|
|
|
#!/bin/sh -e
|
2020-05-22 19:14:38 +07:00
|
|
|
|
2024-07-24 21:02:53 +07:00
|
|
|
OPENSSL_VERSION="1.1.1u"
|
2020-05-22 19:14:38 +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://openssl.org/source/old/1.1.1/openssl-${OPENSSL_VERSION}.tar.gz -O openssl-${OPENSSL_VERSION}.tar.gz
|
2020-05-22 19:14:38 +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
|
2020-08-23 15:46:56 +07:00
|
|
|
make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu)
|
|
|
|
cp -fr include ../../deps
|
2020-05-22 19:14:38 +07:00
|
|
|
cp libcrypto.a ../../deps/lib
|
|
|
|
cp libssl.a ../../deps/lib
|
2021-05-09 11:11:46 +08:00
|
|
|
cd ..
|