[Buildroot] [PATCH 1/1] package/libks: needs NPTL
Fabrice Fontaine
fontaine.fabrice at gmail.com
Fri May 13 21:37:00 UTC 2022
libks needs NPTL since its addition in commit
5752d18bfcdb060c9d3b8c13330344cbdee74b75:
/nvmedata/autobuild/instance-17/output-1/build/libks-1.8.0/src/ks_thread.c: In function 'thread_launch':
/nvmedata/autobuild/instance-17/output-1/build/libks-1.8.0/src/ks_thread.c:237:21: error: 'pthread_setname_np' undeclared (first use in this function); did you mean 'pthread_setcanceltype'?
237 | if (thread->tag && pthread_setname_np)
| ^~~~~~~~~~~~~~~~~~
| pthread_setcanceltype
Fixes:
- http://autobuild.buildroot.org/results/8a93b75ee51e005383eac17aa7577b43eda4cd92
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
package/libks/Config.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/package/libks/Config.in b/package/libks/Config.in
index 366b5bda71..4781d188bf 100644
--- a/package/libks/Config.in
+++ b/package/libks/Config.in
@@ -2,7 +2,7 @@ config BR2_PACKAGE_LIBKS
bool "libks"
depends on BR2_INSTALL_LIBSTDCPP
depends on !BR2_STATIC_LIBS # dlfcn.h
- depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # pthread_setname_np()
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
@@ -11,6 +11,6 @@ config BR2_PACKAGE_LIBKS
https://github.com/signalwire/libks
-comment "libks needs a toolchain w/ C++, threads, dynamic library"
+comment "libks needs a toolchain w/ C++, NPTL, dynamic library"
depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP \
- || !BR2_TOOLCHAIN_HAS_THREADS
+ || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
--
2.35.1
More information about the buildroot
mailing list