package/bitcoin: needs threads
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 30 Dec 2019 13:45:05 +0000 (14:45 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 30 Dec 2019 20:38:30 +0000 (21:38 +0100)
Commit 656fc50b51c03891d34471fd39003355678f7fde added bitcoin without
adding the threads dependency from boost

Fixes:
 - http://autobuild.buildroot.org/results/8e824314d35e12678023f32650a90539a72c9bab

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/bitcoin/Config.in

index 3936cd3c797ae5ce8ead7444d9d70873c6b8f24e..1f08f9f26ffe905bf8ec7d3e51f159625d1a4014 100644 (file)
@@ -12,6 +12,7 @@ config BR2_PACKAGE_BITCOIN
        depends on BR2_INSTALL_LIBSTDCPP
        depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::future
        depends on BR2_PACKAGE_BITCOIN_ARCH_SUPPORTS
+       depends on BR2_TOOLCHAIN_HAS_THREADS # boost
        depends on BR2_USE_WCHAR
        select BR2_PACKAGE_BOOST
        select BR2_PACKAGE_BOOST_SYSTEM
@@ -37,9 +38,10 @@ config BR2_PACKAGE_BITCOIN
 
          https://bitcoincore.org
 
-comment "bitcoin needs a toolchain w/ C++, wchar"
+comment "bitcoin needs a toolchain w/ C++, threads, wchar"
        depends on BR2_PACKAGE_BITCOIN_ARCH_SUPPORTS
-       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR
+       depends on !BR2_INSTALL_LIBSTDCPP || \
+               !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
 
 comment "bitcoin needs a toolchain not affected by GCC bug 64735"
        depends on BR2_PACKAGE_BITCOIN_ARCH_SUPPORTS