From: Marcus Comstedt Date: Sun, 2 Nov 2014 22:50:03 +0000 (+0100) Subject: sigrok-cross-android: Set host platform in PYTHON_FOR_BUILD X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d8a9354ea503b0f63a370024ce19df6be7d07534;p=sigrok-util.git sigrok-cross-android: Set host platform in PYTHON_FOR_BUILD 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. --- diff --git a/cross-compile/android/sigrok-cross-android b/cross-compile/android/sigrok-cross-android index ce3d0af..8d1aff5 100755 --- a/cross-compile/android/sigrok-cross-android +++ b/cross-compile/android/sigrok-cross-android @@ -176,7 +176,7 @@ autoreconf 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)