1#!/bin/sh -ue
2NAME=openssl
3VERSION=3.0.22
4RELEASE=1
5SOURCE="https://github.com/${NAME}/${NAME}/releases/download/${NAME}-${VERSION}/${NAME}-${VERSION}.tar.gz"
6
7build(){
8 ./config no-shared -static threads enable-threads -pthread --prefix=/
9 gmake clean
10 gmake CFLAGS='-static -pthread -DOPENSSL_THREADS' LDFLAGS='-static -pthread' DESTDIR="$PKG"
11 gmake CFLAGS='-static -pthread -DOPENSSL_THREADS' LDFLAGS='-static -pthread' DESTDIR="$PKG" install
12}
13. ${0%/*}/../../libsh/libdmake.sh