From 6ec2a9d4383b3370da39d70805b7c7854cefeded Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sat, 25 Feb 2023 15:14:12 +0100 Subject: [PATCH] package/lirc-tools: fix python build Fix the following build failure raised since bump to version 0.10.2 in commit 58cc3977e83487bdaa1df232cf7adf6383d49cd7: In file included from /home/thomas/autobuild/instance-3/output-1/per-package/lirc-tools/host/bin/../sparc-buildroot-linux-uclibc/sysroot/usr/include/python3.11/Python.h:38, from lirc/_client.c:1: /home/thomas/autobuild/instance-3/output-1/per-package/lirc-tools/host/bin/../sparc-buildroot-linux-uclibc/sysroot/usr/include/python3.11/pyport.h:601:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." 601 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." | ^~~~~ Fixes: - http://autobuild.buildroot.org/results/85359d3f678b49e46821a1c10da5f14edfb5e6d0 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/lirc-tools/lirc-tools.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/lirc-tools/lirc-tools.mk b/package/lirc-tools/lirc-tools.mk index 5263330741..a3ad6bd5a0 100644 --- a/package/lirc-tools/lirc-tools.mk +++ b/package/lirc-tools/lirc-tools.mk @@ -48,7 +48,9 @@ endif ifeq ($(BR2_PACKAGE_PYTHON3),y) LIRC_TOOLS_DEPENDENCIES += python3 host-python-setuptools -LIRC_TOOLS_MAKE_ENV += SETUPTOOLS_ENV='$(PKG_PYTHON_SETUPTOOLS_ENV)' +LIRC_TOOLS_MAKE_ENV += \ + CC="$(TARGET_CC)" \ + SETUPTOOLS_ENV='$(PKG_PYTHON_SETUPTOOLS_ENV)' endif define LIRC_TOOLS_INSTALL_INIT_SYSV