libuv: needs NPTL
authorPeter Korsgaard <peter@korsgaard.com>
Sun, 20 Nov 2016 22:33:59 +0000 (23:33 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 21 Nov 2016 20:24:23 +0000 (21:24 +0100)
Fixes:
http://autobuild.buildroot.net/results/b81/b81583dea1bdf3777b2f2736c84fef90aa10f30b/
http://autobuild.buildroot.net/results/93f/93f1c4dcaa9a20ec62c547b839cd334ed1b5fbe4/
http://autobuild.buildroot.net/results/030/030ef0a9bd51a2c52d6026e0c1e383a9bdae3c4f/
http://autobuild.buildroot.net/results/fff/fff2098f707d9827ec5e1fd38fe742dd2b695ead/

libuv uses pthread_barrier_* functions, which aren't available with
linuxthreads.  Notice that libuv contains a local prototype for these
functions, so libuv is able to build and the error only triggers when
applications try to link against it.

Also propagate this dependency to the reverse deps of libuv.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libuv/Config.in
package/luv/Config.in
package/luvi/Config.in
package/moarvm/Config.in

index 26cb97eecfce3bf110928850204640de00179f02..93fbd56557c86c1f3bae4b3597a0d2f1eca62652 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_LIBUV
        bool "libuv"
-       depends on BR2_TOOLCHAIN_HAS_THREADS
+       depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # pthread_barrier_*
        depends on BR2_USE_MMU # fork()
        depends on !BR2_STATIC_LIBS
        help
@@ -9,6 +9,6 @@ config BR2_PACKAGE_LIBUV
 
          https://github.com/libuv/libuv
 
-comment "libuv needs a toolchain w/ threads, dynamic library"
-       depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+comment "libuv needs a toolchain w/ NPTL, dynamic library"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS
        depends on BR2_USE_MMU
index 787d16269b9420a39ac0210c943d8139a3446642..b085baf546d22471fdbca8f2ae461dfefa547a15 100644 (file)
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_LUV
        bool "luv"
        select BR2_PACKAGE_LIBUV
-       depends on BR2_TOOLCHAIN_HAS_THREADS # libuv
+       depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
        depends on BR2_USE_MMU # libuv
        depends on !BR2_STATIC_LIBS # libuv
        help
@@ -9,6 +9,6 @@ config BR2_PACKAGE_LUV
 
          https://github.com/luvit/luv
 
-comment "luv needs a toolchain w/ threads, dynamic library"
-       depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+comment "luv needs a toolchain w/ NPTL, dynamic library"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS
        depends on BR2_USE_MMU
index 2f01f5c2fa70a3da095aa801b4143f39cc9bfa6f..18317f401e249dacf087916f1b846a5055c682e6 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_LUVI
        bool "luvi"
-       depends on BR2_TOOLCHAIN_HAS_THREADS # libuv
+       depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
        depends on BR2_USE_MMU # libuv
        depends on !BR2_STATIC_LIBS # libuv
        depends on BR2_PACKAGE_LUAJIT
@@ -22,8 +22,8 @@ config BR2_PACKAGE_LUVI
 
          https://github.com/luvit/luvi
 
-comment "luvi needs a toolchain w/ threads, dynamic library"
-       depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+comment "luvi needs a toolchain w/ NPTL, dynamic library"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS
        depends on BR2_USE_MMU
 
 comment "luvi needs LuaJIT"
index 3e0a1045ec385a000777dc69fb701fc1982ad253..69d9a3e42f56b88e404aaad3892ee8ed9de233da 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_MOARVM
        bool "moarvm"
-       depends on BR2_TOOLCHAIN_HAS_THREADS # libuv
+       depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
        depends on !BR2_STATIC_LIBS # libuv
        depends on BR2_USE_MMU # libuv
        depends on BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS # libatomic_ops
@@ -15,8 +15,8 @@ config BR2_PACKAGE_MOARVM
 
          http://moarvm.com
 
-comment "moarvm needs a toolchain w/ threads, dynamic library"
-       depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+comment "moarvm needs a toolchain w/ NPTL, dynamic library"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS
        depends on BR2_USE_MMU
        depends on BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS
        depends on !BR2_sparc64 && !BR2_sparc