Skip to contentSkip to conversation

package/libyang: fix build w/o threads

PATCH New heiko.thiery at gmail.com 2 participants 2 messages Oct 24, 2019 – Oct 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libyang: fix build w/o threads

From: Heiko Thiery <[email protected]>

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

---
 package/libyang/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/libyang/Config.in +3 -2
index ebe51ff099..fec1160a6f 100644
@@ -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
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/libyang: fix build w/o threads

Quoted 5 lines · On Thu, 24 Oct 2019 08:37:16 +0200 heiko.thiery at gmail.com wrote:

From: Heiko Thiery <[email protected]>

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

Quoted 7 lines

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

---
 package/libyang/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com