From c28b93248a2e4ee79dc42e20d904505e7310a15f Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Thu, 6 Jan 2022 23:30:39 +0100 Subject: [PATCH] package/jitterentropy-library: needs threads Fix the following build failure raised since bump to version 3.3.1 in commit 3965f09cb427af411055a783cd14b501b2b28285 and https://github.com/smuellerDD/jitterentropy-library/commit/1e94512db65450ffd950e04fac61408b5efb7e2d In file included from ./jitterentropy.h:98, from src/jitterentropy-gcd.c:22: ./jitterentropy-base-user.h:74:10: fatal error: pthread.h: No such file or directory 74 | #include | ^~~~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/7b01eca8f1442318dd35282605fc8815e6afb0d0 Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- package/jitterentropy-library/Config.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/jitterentropy-library/Config.in b/package/jitterentropy-library/Config.in index 02f8ff6164..f9ae1bac5a 100644 --- a/package/jitterentropy-library/Config.in +++ b/package/jitterentropy-library/Config.in @@ -1,6 +1,10 @@ config BR2_PACKAGE_JITTERENTROPY_LIBRARY bool "libjitterentropy" + depends on BR2_TOOLCHAIN_HAS_THREADS help Hardware RNG based on CPU timing jitter. https://github.com/smuellerDD/jitterentropy-library + +comment "libjitterentropy needs a toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS