package/libyang: fix build w/o threads
authorHeiko Thiery <heiko.thiery@kontron.com>
Thu, 24 Oct 2019 06:37:16 +0000 (08:37 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 25 Oct 2019 18:16:49 +0000 (20:16 +0200)
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 <heiko.thiery@kontron.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libyang/Config.in

index ebe51ff099d88e2558cb10f48a79eddd6086952e..fec1160a6f62b3020e8ccdc424a1accf5bd3ee6f 100644 (file)
@@ -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