Files
packages/lang/python/python-cffi
Josef Schlehofer 73b468c738 python-cffi: fix cross-compilation on macOS hosts
setup.py picks the macOS-only -iwithsysroot/usr/include/ffi flag from
sys.platform, which describes the interpreter running the build rather than
the target, so cross-compiling from a macOS host hands an Apple clang flag to
the GNU cross compiler and the build fails. Use sysconfig.get_platform(),
which honours the _PYTHON_HOST_PLATFORM that python3-package.mk exports.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-08-09 20:12:05 +03:00
..
…
…