[Buildroot] [git commit] package/libyang: fix build w/o threads

From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: 2019-10-25 18:16:49
Subsystem: the rest · Maintainer: Linus Torvalds

commit: https://git.buildroot.net/buildroot/commit/?id=68f3e7c3b1fa6d62299820f2dd54dbfeecb59859
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

For building libyang a toolchain with thread support is needed. Add the dependancy
to BR2_TOOLCHAIN_HAS_THREADS.

Fixes:
  - http://autobuild.buildroot.net/results/1d84ff4aab67a98113d967b65467109e80bb5917

Signed-off-by: Heiko Thiery <redacted>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/libyang/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help