Unless _PYTHON_HOST_PLATFORM is set, setup.py will fail to detect
that this is a cross build, leading to dynamic modules being flagged
as "failed" because they don't load on the build system.
Set _PYTHON_HOST_PLATFORM in the same way it is done in the default
setting of PYTHON_FOR_BUILD.
patch -p1 < ../../Python-$VER_PYTHON.patch
ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no ac_cv_func_pipe2=no ac_cv_func_fdatasync=no ac_cv_func_killpg=no ac_cv_func_waitid=no ac_cv_func_sigaltstack=no ./configure $C --build=x86_64-linux-gnu --disable-ipv6
sed -i "s/^#zlib/zlib/g" Modules/Setup
-make PYTHON_FOR_BUILD=./hostpython install
+make PYTHON_FOR_BUILD='_PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) ./hostpython' install
cd ..
# libiconv (needed for glib)