From 77cf5b5a71aa54039f4dbc509a1c7cb40aa04934 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Pouiller?= Date: Fri, 12 Sep 2014 17:50:11 +0200 Subject: [PATCH] libffi and python: need threads support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit libffi depends on pthreads. Python depends on libffi (it can provide a builtin libffi, but also depends on pthreads). Thus this patch also disable Python support if toolchain is compiled w/o treads support. Fixes http://sysmic.org/~jezz/results/204099dd: ../src/closures.c:119:21: fatal error: pthread.h: No such file or directory [Peter: fix comment dependencies, add python3] Signed-off-by: Jérôme Pouiller Signed-off-by: Peter Korsgaard --- package/libffi/Config.in | 4 ++++ package/python/Config.in | 5 +++-- package/python3/Config.in | 5 +++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/package/libffi/Config.in b/package/libffi/Config.in index 7211f8fa79..6edf570baf 100644 --- a/package/libffi/Config.in +++ b/package/libffi/Config.in @@ -1,5 +1,6 @@ config BR2_PACKAGE_LIBFFI bool "libffi" + depends on BR2_TOOLCHAIN_HAS_THREADS help The libffi library provides a portable, high level programming interface to various calling conventions. This @@ -7,3 +8,6 @@ config BR2_PACKAGE_LIBFFI interface description at run-time. http://sourceware.org/libffi/ + +comment "libffi needs a toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/python/Config.in b/package/python/Config.in index a0c78c6788..8b27630d7c 100644 --- a/package/python/Config.in +++ b/package/python/Config.in @@ -3,15 +3,16 @@ config BR2_PACKAGE_PYTHON depends on BR2_USE_WCHAR # uses fork() depends on BR2_USE_MMU + depends on BR2_TOOLCHAIN_HAS_THREADS # libffi select BR2_PACKAGE_LIBFFI help The python language interpreter. http://www.python.org/ -comment "python needs a toolchain w/ wchar" +comment "python needs a toolchain w/ wchar, threads" depends on BR2_USE_MMU - depends on !BR2_USE_WCHAR + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS if BR2_PACKAGE_PYTHON diff --git a/package/python3/Config.in b/package/python3/Config.in index 3e193c8da7..375390fcf6 100644 --- a/package/python3/Config.in +++ b/package/python3/Config.in @@ -4,15 +4,16 @@ config BR2_PACKAGE_PYTHON3 depends on BR2_USE_WCHAR # uses fork() depends on BR2_USE_MMU + depends on BR2_TOOLCHAIN_HAS_THREADS # libffi select BR2_PACKAGE_LIBFFI help The python language interpreter. http://www.python.org/ -comment "python3 needs a toolchain w/ wchar" +comment "python3 needs a toolchain w/ wchar, threads" depends on BR2_USE_MMU - depends on !BR2_USE_WCHAR + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS if BR2_PACKAGE_PYTHON3 -- 2.30.2