File libffi-3.0.10-win64_no_undefined.patch of Package mingw32-libffi
--- configure.ac.old 2011-09-27 15:41:15.049502569 +0200 +++ configure.ac 2011-09-27 15:41:20.489502572 +0200 @@ -182,6 +182,15 @@ x86_64-*-cygwin* | x86_64-*-mingw*) TARGET=X86_WIN64; TARGETDIR=x86 + # All mingw/cygwin/win32 builds require -no-undefined for sharedlib. + # We must also check with_cross_host to decide if this is a native + # or cross-build and select where to install dlls appropriately. + if test -n "$with_cross_host" && + test x"$with_cross_host" != x"no"; then + AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"'; + else + AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"'; + fi ;; x86_64-*-*)