The patch itself is a win-win solution as it will build native win32 binary but with support for posix path (MSYS and CYGWIN) via generic mount mechanism. He further explain why he choose mount over cygpath, that is because node.js operate asynchronously so by using mount path would settled once rather repeatedly as with cygpath.
This is binary of node.js 0.10.12 (built as ./configure --gdb --without-etw --without-perfctr)
original patch for mingw by Mat -> replace msysmnt with mount
modified patch for mingw-w64
The functionality is implemented in path.js which is bundled inside the executable. So actually you could modify (if you wish) that part (look for
How to build with mingw:
1. extract the source file for node.js homepage
2. download python for msys and extract to msys installation
3. download one of appropriate patches (above) put in source tree
3. start mingw, navigate to source tree and apply patch
4. ./configure [your options] (make sure that python for msys is the active one)
5. python tools/gyp_node -f make
6. LINK=g++ make -C out BUILDTYPE=Release V=1
- I'm not sure about etw and perfctr whether those compilable with mingw but both don't compile out of box.
- The download is contain official installation hierarchy with node.exe replaced. Since it's not installer (it make no sense anyway) I'll assume you know what to do next ;-)