Hi, I'm posting a patch that I use to cross-compile with mingw32 on Linux. It uses macros instead of referencing dlltool, gcc and g++ directly. I have added a call to ranlib, which was needed. I also had to remove INLINE from ptw32_relmillisecs, to link the GCE library. For example the GC static library can be built with: make CC=i586-mingw32msvc-gcc RC=i586-mingw32msvc-windres RANLIB=i586-mingw32msvc-ranlib clean GC-static Regards, Mikael Magnusson