Browse Source

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 <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Fabrice Fontaine 3 years ago
parent
commit
a81caea821
1 changed files with 3 additions and 2 deletions
  1. 3 2
      package/libp11/Config.in

+ 3 - 2
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