--- Python-2.6.1.patch.orig 2010-01-21 09:32:53.937500000 +0800 +++ Python-2.6.1.patch 2010-01-21 09:43:21.500000000 +0800 @@ -230,3 +230,27 @@ RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} INSTSONAME="$LDLIBRARY".$SOVERSION ;; +--- misc/Python-2.6.1/Modules/_ctypes/libffi/configure 2010-01-21 09:34:12.437500000 +0800 ++++ misc/build/Python-2.6.1/Modules/_ctypes/libffi/configure 2010-01-21 09:36:57.625000000 +0800 +@@ -20426,10 +20426,10 @@ + ;; + + mips-sgi-irix5.* | mips-sgi-irix6.*) +- TARGET=MIPS; TARGETDIR=mips ++ TARGET=MIPS_IRIX; TARGETDIR=mips + ;; + mips*-*-linux*) +- TARGET=MIPS; TARGETDIR=mips ++ TARGET=MIPS_LINUX; TARGETDIR=mips + ;; + + powerpc*-*-linux* | powerpc-*-sysv*) +@@ -20484,7 +20484,7 @@ + { (exit 1); exit 1; }; } + fi + +- if test x$TARGET = xMIPS; then ++ if expr x$TARGET : 'xMIPS' > /dev/null; then + MIPS_TRUE= + MIPS_FALSE='#' + else