--- libffi/configure.host.orig 2015-01-13 23:30:33 UTC +++ libffi/configure.host @@ -60,6 +60,10 @@ case "${host}" in SOURCES="ffi.c hpux32.S" ;; + i?86-*-bsdsunix*) + TARGET=X86_BSDSUNIX; TARGETDIR=x86 + ;; + i?86-*-freebsd* | i?86-*-openbsd*) TARGET=X86_FREEBSD; TARGETDIR=x86 ;; @@ -184,6 +188,13 @@ case "${host}" in powerpc-*-aix* | rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc ;; + powerpc-*-bsdsunix*) + TARGET=POWERPC_BSDSUNIX; TARGETDIR=powerpc + HAVE_LONG_DOUBLE_VARIANT=1 + ;; + powerpc64-*-bsdsunix*) + TARGET=POWERPC; TARGETDIR=powerpc + ;; powerpc-*-freebsd* | powerpc-*-openbsd*) TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc HAVE_LONG_DOUBLE_VARIANT=1 @@ -245,6 +256,12 @@ case "${TARGET}" in POWERPC_DARWIN) SOURCES="ffi_darwin.c darwin.S darwin_closure.S" ;; + POWERPC_BSDSUNIX) + SOURCES="ffi.c ffi_sysv.c sysv.S ppc_closure.S" + ;; + X86 | X86_BSDSUNIX | X86_WIN32) + SOURCES="ffi.c sysv.S" + ;; POWERPC_FREEBSD) SOURCES="ffi.c ffi_sysv.c sysv.S ppc_closure.S" ;;