mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-06 18:09:44 +03:00
libffi and python: need threads support
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 <jezz@sysmic.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
daf4820c85
commit
77cf5b5a71
@@ -1,5 +1,6 @@
|
|||||||
config BR2_PACKAGE_LIBFFI
|
config BR2_PACKAGE_LIBFFI
|
||||||
bool "libffi"
|
bool "libffi"
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||||
help
|
help
|
||||||
The libffi library provides a portable, high level
|
The libffi library provides a portable, high level
|
||||||
programming interface to various calling conventions. This
|
programming interface to various calling conventions. This
|
||||||
@@ -7,3 +8,6 @@ config BR2_PACKAGE_LIBFFI
|
|||||||
interface description at run-time.
|
interface description at run-time.
|
||||||
|
|
||||||
http://sourceware.org/libffi/
|
http://sourceware.org/libffi/
|
||||||
|
|
||||||
|
comment "libffi needs a toolchain w/ threads"
|
||||||
|
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||||
|
|||||||
@@ -3,15 +3,16 @@ config BR2_PACKAGE_PYTHON
|
|||||||
depends on BR2_USE_WCHAR
|
depends on BR2_USE_WCHAR
|
||||||
# uses fork()
|
# uses fork()
|
||||||
depends on BR2_USE_MMU
|
depends on BR2_USE_MMU
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_THREADS # libffi
|
||||||
select BR2_PACKAGE_LIBFFI
|
select BR2_PACKAGE_LIBFFI
|
||||||
help
|
help
|
||||||
The python language interpreter.
|
The python language interpreter.
|
||||||
|
|
||||||
http://www.python.org/
|
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_MMU
|
||||||
depends on !BR2_USE_WCHAR
|
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||||
|
|
||||||
if BR2_PACKAGE_PYTHON
|
if BR2_PACKAGE_PYTHON
|
||||||
|
|
||||||
|
|||||||
@@ -4,15 +4,16 @@ config BR2_PACKAGE_PYTHON3
|
|||||||
depends on BR2_USE_WCHAR
|
depends on BR2_USE_WCHAR
|
||||||
# uses fork()
|
# uses fork()
|
||||||
depends on BR2_USE_MMU
|
depends on BR2_USE_MMU
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_THREADS # libffi
|
||||||
select BR2_PACKAGE_LIBFFI
|
select BR2_PACKAGE_LIBFFI
|
||||||
help
|
help
|
||||||
The python language interpreter.
|
The python language interpreter.
|
||||||
|
|
||||||
http://www.python.org/
|
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_MMU
|
||||||
depends on !BR2_USE_WCHAR
|
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||||
|
|
||||||
if BR2_PACKAGE_PYTHON3
|
if BR2_PACKAGE_PYTHON3
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user