Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/openssl: statically-linked openssl does not provide threads
@ 2023-07-20 17:53 Bernd Kuhls
  2023-07-20 17:53 ` [Buildroot] [PATCH 2/2] package/tor: needs openssl with threads Bernd Kuhls
  2023-07-20 21:21 ` [Buildroot] [PATCH 1/2] package/openssl: statically-linked openssl does not provide threads Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2023-07-20 17:53 UTC (permalink / raw)
  To: buildroot

Add blind option to mark availability of threads, needed for tor.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/openssl/Config.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/openssl/Config.in b/package/openssl/Config.in
index c7641ecefa..f81ed1a00b 100644
--- a/package/openssl/Config.in
+++ b/package/openssl/Config.in
@@ -1,6 +1,9 @@
 config BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
 	bool
 
+config BR2_PACKAGE_OPENSSL_HAS_THREADS
+	bool
+
 config BR2_PACKAGE_OPENSSL
 	bool "openssl support"
 	select BR2_PACKAGE_HAS_OPENSSL
@@ -17,6 +20,8 @@ choice
 config BR2_PACKAGE_LIBOPENSSL
 	bool "openssl"
 	select BR2_PACKAGE_ZLIB
+	# https://github.com/openssl/openssl/issues/14574#issuecomment-1584122617
+	select BR2_PACKAGE_OPENSSL_HAS_THREADS if !BR2_STATIC_LIBS
 	help
 	  A collaborative effort to develop a robust, commercial-grade,
 	  fully featured, and Open Source toolkit implementing the
@@ -36,6 +41,7 @@ config BR2_PACKAGE_LIBRESSL
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	# uClibc doesn't provide __register_atfork() without NPTL
 	depends on !BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_HAS_THREADS_NPTL
+	select BR2_PACKAGE_OPENSSL_HAS_THREADS
 	help
 	  LibreSSL is a version of the TLS/crypto stack forked from
 	  OpenSSL in 2014, with goals of modernizing the codebase,
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-20 21:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-20 17:53 [Buildroot] [PATCH 1/2] package/openssl: statically-linked openssl does not provide threads Bernd Kuhls
2023-07-20 17:53 ` [Buildroot] [PATCH 2/2] package/tor: needs openssl with threads Bernd Kuhls
2023-07-20 21:21 ` [Buildroot] [PATCH 1/2] package/openssl: statically-linked openssl does not provide threads Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox