--- Modules/_ctypes/libffi/configure.orig 2014-10-08 12:18:14.000000000 +0400 +++ Modules/_ctypes/libffi/configure 2014-10-19 12:39:11.000000000 +0400 @@ -7526,7 +7526,7 @@ rm -rf conftest* ;; -x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ +amd64-*-freebsd*|x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the