[Buildroot] [PATCH] package/bullet: needs NPTL to build extras

Giulio Benetti giulio.benetti at micronovasrl.com
Wed May 8 16:59:45 UTC 2019


At the moment HAS_THREADS=y only is needed to build extras but this
results in build failure due to function calls to pthread_barrier_*.

Modify BR2_TOOLCHAIN_HAS_THREADS=y check to
BR2_TOOLCHAIN_HAS_THREADS_NPTL=y.

Fixes:
http://autobuild.buildroot.net/results/e96/e96cacd185f14479433f91ccd47d76058cf5b345/

Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
---
 package/bullet/bullet.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/bullet/bullet.mk b/package/bullet/bullet.mk
index 7ff8195c85..f234335890 100644
--- a/package/bullet/bullet.mk
+++ b/package/bullet/bullet.mk
@@ -17,7 +17,7 @@ BULLET_CONF_OPTS = -DBUILD_UNIT_TESTS=OFF \
 	-DBUILD_BULLET3=OFF
 
 # extras needs dlfcn.h and threads
-ifeq ($(BR2_STATIC_LIBS):$(BR2_TOOLCHAIN_HAS_THREADS),:y)
+ifeq ($(BR2_STATIC_LIBS):$(BR2_TOOLCHAIN_HAS_THREADS_NPTL),:y)
 BULLET_CONF_OPTS += -DBUILD_EXTRAS=ON
 else
 BULLET_CONF_OPTS += -DBUILD_EXTRAS=OFF
-- 
2.17.1



More information about the buildroot mailing list