mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-16 15:57:38 +00:00
20 lines
584 B
Bash
Executable file
20 lines
584 B
Bash
Executable file
#!/bin/sh -e
|
|
|
|
OPENSSL_VERSION="3.0.15"
|
|
|
|
mkdir -p deps
|
|
mkdir -p deps/include
|
|
mkdir -p deps/lib
|
|
|
|
mkdir -p build && cd build
|
|
|
|
wget https://github.com/openssl/openssl/releases/download/openssl-${OPENSSL_VERSION}/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
|
|
cp libcrypto.a ../../deps/lib
|
|
cp libssl.a ../../deps/lib
|
|
cd ..
|