New comment by Hoshpak on void-packages repository https://github.com/void-linux/void-packages/pull/16198#issuecomment-551003080 Comment: Yeah, I suspect all python modules that contain C code and use distutils will. The issue is in sysconfig which uses the host python Makefile to get the build configuration and only appends additionally supplied flags to that to build the flags for the build. I suspect that was always the case and somehow ignored in earlier gcc versions at least I couldn't find a breaking change in the python source code. I'm looking for a way to override this for cross builds without patching the Python source code but haven't found one yet.