sigrok-cross-android: Set host platform in PYTHON_FOR_BUILD
authorMarcus Comstedt <marcus@mc.pp.se>
Sun, 2 Nov 2014 22:50:03 +0000 (23:50 +0100)
committerMarcus Comstedt <marcus@mc.pp.se>
Sun, 2 Nov 2014 23:06:10 +0000 (00:06 +0100)
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.

cross-compile/android/sigrok-cross-android

index ce3d0af2bbda070bd9eeb386d46e68d0a6fa755a..8d1aff5328127d0d4fb77a55ccc46b431d3bc302 100755 (executable)
@@ -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)