005-fix-libffi-x86-64-configure.patch 596 B

12345678910111213141516171819202122232425262728293031
  1. diff --git a/Modules/_ctypes/libffi/configure b/Modules/_ctypes/libffi/configure
  2. index 75f62a7..4d6c9f2 100755
  3. --- a/Modules/_ctypes/libffi/configure
  4. +++ b/Modules/_ctypes/libffi/configure
  5. @@ -17257,20 +17257,12 @@ case "$host" in
  6. fi
  7. ;;
  8. - i?86-*-* | x86_64-*-*)
  9. - TARGETDIR=x86
  10. - if test $ac_cv_sizeof_size_t = 4; then
  11. - case "$host" in
  12. - *-gnux32)
  13. - TARGET=X86_64
  14. - ;;
  15. - *)
  16. - TARGET=X86
  17. - ;;
  18. - esac
  19. - else
  20. - TARGET=X86_64;
  21. - fi
  22. + i?86-*-*)
  23. + TARGET=X86; TARGETDIR=x86
  24. + ;;
  25. +
  26. + x86_64-*-*)
  27. + TARGET=X86_64; TARGETDIR=x86
  28. ;;
  29. ia64*-*-*)