<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">After some more successful tests I can confirm that I build a more or less functional version of a 64 bit native Windows mono runtime using Mingw-w64 and MSys (without cygwin). Initially I targeted mono.2.10.1 but ended up with some runtime errors (I had been warned that it might not work out with Win64). &nbsp;Therefore, I switched back to 2.6.7. I wrote down a memory protocol of what I did in order to get it up and running. I know that most of my changes to the source are not very clean, anyway I'd like to share them in this collected fashion in order to help people out with this. Maybe someone could enhance this or even incorperate it to the "compiling mono for windows" section on the mono homepage.&nbsp;</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">Thanks to all the people who somehow contributed!</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">Frank</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">As far as I understand it:&nbsp;</span></font></span><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">Mono consists of the runtime and libs (mono) and a C# compiler (mcs, gmcs, dmcs).&nbsp;</span></font></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">The latter one is an cil-assembly itself. Therefore it can change its bitness (32/64 bit) depending on the runtime - so we don't have to build this part.&nbsp;</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></span></div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">1. Download the tarball &amp; 32 bit release (at the moment 2.6.7 works best for embedding and 64 bit, at least for me)<br>2. get all dependencies and build tools</span></font></span><ul><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">Mingw-w64 (targeting 64 bit of course, TDM has very complete builds <a href="http://tdm-gcc.tdragon.net/download">http://tdm-gcc.tdragon.net/download</a>)&nbsp;<br>in the following the install-path will be called MINGW_PATH (you should substitute every occurrence with your personal Mingw-path)</span></font></span></li><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">get MSys (e.g. the convience bundle provided by the Mingw-w64 guys (don't worry that it's 32 Bit)&nbsp;</span></font></span><a href="http://goo.gl/Z5lxC"><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">http://goo.gl/Z5lxC</span></font></span></font></a><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">&nbsp;)<br>in the following the install-path will be called MSYS_PATH (you should substitute every occurrence with your personal MSys-path)</span></font></span></li><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">install automake (if think I used the MSys automake against all warnings)</span></font></span></li><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">get 64 bit versions of pkg-config and glib.2.26 (incl. dev-package, for mono.2.6.7 it's required) from&nbsp;<a href="http://www.gtk.org/download-windows-64bit.html">http://www.gtk.org/download-windows-64bit.html</a> and extract them to $MINGW_PATH&nbsp;&nbsp;</span></font></span></li><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">Start working in an MSys shell&nbsp;</span></font></span><ul><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">export PATH=MINGW_PATH/bin:MSYS_PATH:$PATH - the ordering is important as there might be duplicates between Mingw-w64 and MSys</span></font></span></li></ul></li><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">get zlib and compile it (<a href="http://zlib.net/zlib-1.2.5.tar.gz">http://zlib.net/zlib-1.2.5.tar.gz</a>) and build:&nbsp;<br clear="none"></span></font></span><span style="white-space: pre;"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">make -f win32/Makefile.gcc&nbsp;</span></font></span></span><ul><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><span style="white-space: pre;"></span></span></font><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">install as follows:&nbsp;</span></font></span></span><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">cp -iv zlib1.dll $MINGW_PATH/bin</span></font></span></span><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">cp -iv zconf.h zlib.h $MINGW_PATH/include</span></font></span></span><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">cp -iv libz.a $MINGW_PATH/lib</span></font></span></span><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">cp -iv libzdll.a $MINGW_PATH/lib/libz.dll.</span></font></span></span></span></span></li></ul></li></ul><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></span><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">3. get the Boehm GC in a mingw-w64 compatabile form (<a href="http://gitorious.net/w64/bohem-gc?page=9">http://gitorious.net/w64/bohem-gc?page=9</a>) and build it:&nbsp;</span></font></span></span><div><ul><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">./configure --prefix==MINGW_PATH ; make ; make install&nbsp;</span></font></span></li></ul><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">4. extract the mono directory and patch the following files:<br></span></font></span><ul><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">modify build-mingw32.sh:</span></font></span><ul><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">modify the path variables:<br>MINGW=x86_64-w64-mingw32<br>CROSS_DIR=MINGW_PATH<br>INSTALL_DESTDIR="$CURDIR/mono-win32"<br>CROSS_BIN_DIR="$CROSS_DIR/bin"<br>CROSS_DLL_DIR="$CROSS_DIR/bin"<br>CROSS_PKG_CONFIG_DIR=$CROSS_DIR/lib/pkgconfig</span></font></span></li><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">modify the first configure line:<br>../configure --prefix=$MONO_PREFIX --with-crosspkgdir=$CROSS_PKG_CONFIG_DIR --target=$MINGW --host=$MINGW --enable-parallel-mark --program-transform-name="" --disable-mcs-build --enable-nls=no --with-tls=no --with-gc=boehm<br># we use the Boehm GC and disable the native language support (nls), also we don't build the MCS here</span></font></span></li><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">comment out the second configure line and make</span></font></span></li></ul></li></ul></div><ul><li><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">modify libgc/include/gc.h (ripoff from&nbsp;</span></font></span><a href="http://goo.gl/QDOWw"><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">http://goo.gl/QDOWw</span></font></span></font></a><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">)<br>--- mono-2.6.7.orig/libgc/include/gc.h &nbsp;<br>+++ mono-2.6.7/libgc/include/gc.h &nbsp;&nbsp;<br>@@ -61,8 +61,13 @@<br>&nbsp;&nbsp; /* Win64 isn't really supported yet, but this is the first step. And */<br>&nbsp;&nbsp; /* it might cause error messages to show up in more plausible places.&nbsp;&nbsp;&nbsp; */<br>&nbsp;&nbsp; /* This needs basetsd.h, which is included by windows.h.&nbsp;&nbsp;&nbsp;&nbsp; */<br>+#ifdef __int64<br>&nbsp;&nbsp; typedef unsigned __int64 GC_word;<br>&nbsp;&nbsp; typedef __int64 GC_signed_word;<br>+#else<br>+&nbsp; typedef unsigned long long GC_word;<br>+&nbsp; typedef long long GC_signed_word;<br>+#endif<br>&nbsp;#endif</span></font></span></div></li></ul><ul><li><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">modify libgc/include/gc_config_macros.h<br>@@ -124,7</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">-&nbsp;&nbsp;#if defined(_DLL) &amp;&amp; !defined(GC_NOT_DLL) &amp;&amp; !defined(GC_DLL)&nbsp;</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">+ #if defined(_DLL) &amp;&amp; !defined(GC_NOT_DLL) &amp;&amp; !defined(GC_DLL) \</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">+ &nbsp; &amp;&amp; !defined(__GNUC__)</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"># define GC_DLL</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">#endif</span></font></span></div></li></ul><div><ul><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">modify mono/mini/driver.c (a shortcut to the solution from&nbsp;</span></font></span><a href="http://goo.gl/QDOWw"><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">http://goo.gl/QDOWw</span></font></span></font></a><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">)<br></span></font></span><span class="Apple-style-span" style="border-collapse: collapse; line-height: 14px; white-space: pre;"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">@@ -1239,7</span></font></span><div><div><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">&nbsp;</span></font></span></font></code><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">#ifdef HOST_WIN32</span></font></span></font></code><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></span></div><div><div><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">&nbsp;</span></font></span></font></code><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">BOOL APIENTRY DllMain (HMODULE module_handle, DWORD reason, LPVOID reserved)</span></font></span></font></code><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></span></div><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"><div><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">&nbsp;</span></font></span></font></code><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">{</span></font></span></font></code></div><div><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">//if (!GC_DllMain (module_handle, reason, reserved))</span></font></code></span><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"></code></span></font></font><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"></code></span></font></div><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"><div><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">//&nbsp;&nbsp;&nbsp;&nbsp;</span></font></span></font></code><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">return FALSE;</span></font></span></font></code></div></code></code></div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"></code></span></font></div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"></code></span></font></span><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"></code></span></font></li><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"></code></span></font></ul><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"><ul><li><code><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">modify mono/mini/driver.h<br></span></font></span></font></code><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">@@ 5<br>+ #include &lt;sys/types.h&gt; &nbsp; &nbsp; &nbsp; &nbsp;// include for pid_t</span></font></span></li><li><code><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">modify mono/metadata/coree.c&nbsp;</span></font></span></font></code><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">@@ -26,7<br>#ifndef _MSC_VER</span></font></span><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">+#ifdef __MINGW64_VERSION_MAJOR</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">+#define __ImageBase __MINGW_LSYMBOL(_image_base__)</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">+#else</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">#define __ImageBase _image_base__</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">+#endif</span></font></span></div><div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">#endif</span></font></span></div><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></span></li><li><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">modify io-layer.h<br>@@ 40,7<br>#else /* !_MSC_VER */<br>- #include &lt;ddk/ntddk.h&gt;<br>- #include &lt;ddk/ntapi.h&gt;<br>+ //#include &lt;ddk/ntddk.h&gt;<br>+ //#include &lt;ddk/ntapi.h&gt;<br>#endif /* _MSC_VER */<br><br></span></font></span></li><code><li><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">modify boehm-gc.c<br>@@ 125,7<br>+ &nbsp; GC_allow_register_threads(); &nbsp; // required for external Boehm GC<br><br></span></font></span></font></li><li><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">modify&nbsp;mono/profiler/mono-profiler-aot.c (strangely the PLATFORM_WIN32 does not kick in here)<br>@@ 68<br>#ifdef PLATFORM_WIN32<br>&nbsp;&nbsp; err = mkdir (tmp);<br>#else<br>- &nbsp;err = mkdir (tmp, 0777);<br>+ &nbsp; &nbsp;err = mkdir (tmp); &nbsp; &nbsp;<br>#endif</span></font></span></font></li></code></ul><code><div><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">5. run build-mingw32.sh and enjoy&nbsp;</span></font></span></font></div></code><ul><li><code><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">for me on one of my build machines there were linking errors for the shared libraries (libmono.dll) because lmswsock and others are missing,<br>I just copied the files from C:/Windows/System32 to MINGW_PATH/bin adding the lib prefix (mswsock.dll -&gt; libmswsock.dll)</span></font></span></font></code></li><li><code><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="background-color: transparent;"><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">after make install (build-mingw32.sh should do it) you should have a 64 bit runtime &amp; libraries</span></font></span></font></code></li></ul><div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">6. merge the contents of your newly compiled installation folder (see build-mingw32: INSTALL_DESTDIR="$CURDIR/mono-win32") with the released tarball.</span></font></div><ul><li><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">I just copied mono-win32/* into the unziped release, added the 64 bit glib &amp; glib-dev and deleted all files except lib/mono/* which had the date of the release</span></font></li></ul><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 13px;">7. go ... and have fun (and if you find some time ... please complete this manual)</span></font></code></div><span class="Apple-style-span" style="font-family: Arial; "><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"></code></span><code style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-left-radius: 0px 0px !important; border-style: initial !important; border-color: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow-x: visible !important; overflow-y: visible !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; width: auto !important; min-height: inherit !important;"></code></body></html>