xmrig/scripts/build.openssl.sh

21 lines
537 B
Bash
Raw Normal View History

2020-05-22 12:14:38 +00:00
#!/bin/bash -e
2021-08-28 06:10:48 +00:00
OPENSSL_VERSION="1.1.1l"
2020-05-22 12:14:38 +00:00
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 -no-cms
make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu)
cp -fr include ../../deps
2020-05-22 12:14:38 +00:00
cp libcrypto.a ../../deps/lib
cp libssl.a ../../deps/lib
2021-05-09 03:11:46 +00:00
cd ..