![Romain Naour](/assets/img/avatar_default.png)
Since version 2.29, glibc requires python 3.4 or later to build the GNU C Library [1]. We add a new check to verify the version of python3 interpreter installed on the host. If no suitable python3 interpreter is found, define BR2_PYTHON3_HOST_DEPENDENCY to add host-python3 in package dependencies when needed. [1] https://www.sourceware.org/ml/libc-alpha/2019-01/msg00723.html Signed-off-by: Romain Naour <romain.naour@gmail.com> Tested-by: Adam Duskett <aduskett@gmail.com> Reviewed-by: Adam Duskett <aduskett@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Thomas: drop not so useful comment in the .mk file, as suggested by Yann E. Morin.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
9 lines
319 B
Makefile
9 lines
319 B
Makefile
# Since version 2.29, glibc requires python 3.4 or later to build the GNU C Library.
|
|
# https://www.sourceware.org/ml/libc-alpha/2019-01/msg00723.html
|
|
|
|
BR2_PYTHON3_VERSION_MIN = 3.4
|
|
|
|
ifeq (,$(call suitable-host-package,python3,$(BR2_PYTHON3_VERSION_MIN) python3 python))
|
|
BR2_PYTHON3_HOST_DEPENDENCY = host-python3
|
|
endif
|