The attached draft patch fixes most of the issues with the build. (I just added the necessary mingw64-i686-* libraries to Ports.) ntdll.h needs some more work though; perhaps JonY could provide some input?
Also, if we still want to support the i686-pc-mingw32 toolchain, the bootstrap.sh chunk should probably be expanded to use whichever toolchain is available. That is moot, however, until it actually compiles with w64.
Yaakov
setup-mingw64.patch
Description: application/itunes-itlp
