From be070658aa5af1d4719a2c91849d9d7bec14b0bf Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 19 Jul 2022 23:56:19 +0200 Subject: [PATCH] package/libp11: needs threads threads are mandatory since bump to version 0.4.12 in commit 86ab91483dcb4b60de8c1daa20e2f42bd95ab5fb and https://github.com/OpenSC/libp11/commit/4bd92da60a670e3c25d9cb69fca3363f47a225c7: In file included from eng_back.c:30: p11_pthread.h:92:2: error: #error Locking not supported on this platform. 92 | #error Locking not supported on this platform. | ^~~~~ Fixes: - http://autobuild.buildroot.org/results/22adeb78ec4a807c362e6666825f50db6c0408f7 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni (cherry picked from commit a81caea821199a2932f82ad24b1ee93c577a0477) Signed-off-by: Peter Korsgaard --- package/libp11/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/libp11/Config.in b/package/libp11/Config.in index 4d7ff56895..ef1e5b4703 100644 --- a/package/libp11/Config.in +++ b/package/libp11/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_LIBP11 bool "libp11" depends on !BR2_STATIC_LIBS # dlopen + depends on BR2_TOOLCHAIN_HAS_THREADS select BR2_PACKAGE_OPENSSL help OpenSSL engine for PKCS#11 modules. Part of the OpenSC @@ -8,5 +9,5 @@ config BR2_PACKAGE_LIBP11 https://github.com/OpenSC/OpenSC/wiki -comment "libp11 needs a toolchain w/ dynamic library" - depends on BR2_STATIC_LIBS +comment "libp11 needs a toolchain w/ dynamic library, threads" + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS