--- Modules/_ctypes/libffi/configure.orig	2014-12-16 08:10:12.000000000 +0100
+++ Modules/_ctypes/libffi/configure	2014-12-16 08:10:40.000000000 +0100
@@ -7526,7 +7526,7 @@ mips64*-*linux*)
   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
