I have the following mingw32 build directive and it works. The command successfully builds a Windows DLL on a Linux machine.
mingw32
/usr/bin/x86_64-w64-mingw3