python: add patch to fix _ctypes build on certain X86_64 hosts
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Sun, 11 Jan 2015 16:47:02 +0000 (18:47 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Sun, 11 Jan 2015 18:15:13 +0000 (20:15 +0200)
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/patches/150-fix-libffi-x86-64-configure.patch [new file with mode: 0644]

diff --git a/lang/python/patches/150-fix-libffi-x86-64-configure.patch b/lang/python/patches/150-fix-libffi-x86-64-configure.patch
new file mode 100644 (file)
index 0000000..ea062a3
--- /dev/null
@@ -0,0 +1,31 @@
+diff --git a/Modules/_ctypes/libffi/configure b/Modules/_ctypes/libffi/configure
+index 75f62a7..4d6c9f2 100755
+--- a/Modules/_ctypes/libffi/configure
++++ b/Modules/_ctypes/libffi/configure
+@@ -17257,20 +17257,12 @@ case "$host" in
+       fi
+       ;;
+-  i?86-*-* | x86_64-*-*)
+-      TARGETDIR=x86
+-      if test $ac_cv_sizeof_size_t = 4; then
+-        case "$host" in
+-          *-gnux32)
+-            TARGET=X86_64
+-            ;;
+-          *)
+-            TARGET=X86
+-            ;;
+-          esac
+-      else
+-        TARGET=X86_64;
+-      fi
++  i?86-*-*)
++      TARGET=X86; TARGETDIR=x86
++      ;;
++
++  x86_64-*-*)
++      TARGET=X86_64; TARGETDIR=x86
+       ;;
+   ia64*-*-*)