diff --git a/package/libyang/Config.in b/package/libyang/Config.in index ebe51ff099..fec1160a6f 100644 --- a/package/libyang/Config.in +++ b/package/libyang/Config.in @@ -1,5 +1,6 @@ config BR2_PACKAGE_LIBYANG bool "libyang" + depends on BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_STATIC_LIBS select BR2_PACKAGE_PCRE select BR2_PACKAGE_PCRE_UCP @@ -9,5 +10,5 @@ config BR2_PACKAGE_LIBYANG https://github.com/CESNET/libyang -comment "libyang needs a toolchain w/ dynamic library" - depends on BR2_STATIC_LIBS +comment "libyang needs a toolchain w/ threads, dynamic library" + depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS