X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=cross-compile%2Fmingw%2Fsigrok-cross-mingw;h=bda4d921240d6f6cacf130dc6bd9e47c9e493e01;hp=5cf478fc9620d1da466b5961e729b64755ab9481;hb=d24d85a21fddac4021e5eb9916fdfb39c38d51c1;hpb=87b105300e4d03dece7227b142991a8ac039cddd diff --git a/cross-compile/mingw/sigrok-cross-mingw b/cross-compile/mingw/sigrok-cross-mingw index 5cf478f..bda4d92 100755 --- a/cross-compile/mingw/sigrok-cross-mingw +++ b/cross-compile/mingw/sigrok-cross-mingw @@ -2,7 +2,7 @@ ## ## This file is part of the sigrok-util project. ## -## Copyright (C) 2013-2018 Uwe Hermann +## Copyright (C) 2013-2020 Uwe Hermann ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -45,8 +45,6 @@ DEBUG=0 # ----------------------------------------------------------------------------- -SF_MIRROR=switch.dl.sourceforge.net - WGET="wget -c --quiet" GIT_CLONE="git clone --depth=1" @@ -108,6 +106,11 @@ mkdir -p $PREFIX $WGET http://www.sigrok.org/tmp/Python34_$TARGET.tar.gz -O $PREFIX/Python34.tar.gz tar xzf $PREFIX/Python34.tar.gz -C $PREFIX +# Fix for bug #1195. +if [ $TARGET = "x86_64" ]; then + patch -p1 $PREFIX/Python34/include/pyconfig.h < ../pyconfig.patch +fi + # Create a dummy python3.pc file so that pkg-config finds Python 3. mkdir -p $PREFIX/lib/pkgconfig cat >$PREFIX/lib/pkgconfig/python3.pc <