[issue45881] Cross compiling on Linux is untested, undocumented, and broken

Christian Heimes report at bugs.python.org
Wed Nov 24 11:13:08 EST 2021


Christian Heimes <lists at cheimes.de> added the comment:

bpo-45886 addresses the cross build issue with freeze_module command.

The wrong header files come from the fact that setup.py uses CC variable from sysconfig instead of environment. The sysconfig variable contains the C compiler of the build interpreter instead of the host interpreter. The correct value is in os.environ.

----------
dependencies: +Fix Program/_freeze_module for cross compiling Python

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45881>
_______________________________________


More information about the Python-bugs-list mailing list