2020-05-22 12:14:38 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2022-03-06 17:27:49 +00:00
|
|
|
LIBRESSL_VERSION="3.4.2"
|
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://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz -O libressl-${LIBRESSL_VERSION}.tar.gz
|
|
|
|
tar -xzf libressl-${LIBRESSL_VERSION}.tar.gz
|
|
|
|
|
|
|
|
cd libressl-${LIBRESSL_VERSION}
|
|
|
|
./configure --disable-shared
|
2020-08-23 08:46:56 +00:00
|
|
|
make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu)
|
|
|
|
cp -fr include ../../deps
|
2020-05-22 12:14:38 +00:00
|
|
|
cp crypto/.libs/libcrypto.a ../../deps/lib
|
|
|
|
cp ssl/.libs/libssl.a ../../deps/lib
|
2022-03-06 17:27:49 +00:00
|
|
|
cd ..
|