commit 0555004

chld  ·  2026-09-05 14:03:57 +0000 UTC
parent 0097da3
openssl: threads
1 files changed,  +4, -3
+4, -3
 1@@ -5,8 +5,9 @@ RELEASE=1
 2 SOURCE="https://github.com/${NAME}/${NAME}/releases/download/${NAME}-${VERSION}/${NAME}-${VERSION}.tar.gz"
 3 
 4 build(){
 5-    ./config no-shared -static --prefix=/ --openssldir=/share/openssl/
 6-    gmake CFLAGS=-static LDFLAGS=-static DESTDIR="$PKG"
 7-    gmake CFLAGS=-static LDFLAGS=-static DESTDIR="$PKG" install
 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