Mingw 32 (somewhat off topic...)

Sam has got a mingw32 version for linux ready to download, but
it won’t work on my solaris system, so I’d be happy if somebody
could tell me, where to find everything that I need to compile
one by myself…
thx
Manuel