Build cross cygwin with mingw32 support
From PdaXrom embedded
You can use cross cygwin with posix compatibility layer to build native win32 applications in Linux or Darwin (OSX). Also cygwin includes mingw32 support for creating applications with native Windows API. pdaXrom-ng builder creates cross cygwin toolchain.
Install the builder and run the next script:
sudo ./build-crosstools.sh i686-cygwin
To compile sources with cygwin posix layer:
/opt/i686-cygwin/toolchain/bin/i686-cygwin-gcc hello.c -o hello.exe
To compile sources in mingw32 mode:
/opt/i686-cygwin/toolchain/bin/i686-cygwin-gcc hello.c -o hello.exe -mno-cygwin

