openwrt-dev / openwrt

Other
1 stars 0 forks source link

Hack OpenWrt #1

Open pexcn opened 6 years ago

pexcn commented 6 years ago

TODO

pexcn commented 3 years ago

Really need?

root@ARCH ~/openwrt # git show 938d56e43073a310271677664dc7d05133ff37eb
commit 938d56e43073a310271677664dc7d05133ff37eb
Author: pexcn <i@pexcn.me>
Date:   2019-07-08 16:20:03 +0800

    enable openssl threading support

diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile
index eb267f31f0..42bd23bdc0 100644
--- a/package/libs/openssl/Makefile
+++ b/package/libs/openssl/Makefile
@@ -94,7 +94,8 @@ $(call Package/openssl/Default)
   DEPENDS:=+OPENSSL_WITH_COMPRESSION:zlib \
           +OPENSSL_ENGINE_BUILTIN_AFALG:kmod-crypto-user \
           +OPENSSL_ENGINE_BUILTIN_DEVCRYPTO:kmod-cryptodev \
-          +OPENSSL_ENGINE_BUILTIN_PADLOCK:kmod-crypto-hw-padlock
+          +OPENSSL_ENGINE_BUILTIN_PADLOCK:kmod-crypto-hw-padlock \
+          +libpthread
   TITLE+= (libraries)
   ABI_VERSION:=1.1
   MENU:=1
@@ -186,6 +187,9 @@ endef

 OPENSSL_OPTIONS:= shared

+# Enable threading
+OPENSSL_OPTIONS += threads
+
 ifndef CONFIG_OPENSSL_WITH_BLAKE2
   OPENSSL_OPTIONS += no-blake2
 endif