How can I build and test libffi under cygwin with mingw32? <p>After checking (most recent) tag v3.2.1:</p> <pre><code>% sh autogen.sh % ./configure CC=i686-pc-mingw32-gcc % make check </code></pre> <p>All tests appear to fail.</p> <p>Using CC=gcc, tests seem to work properly. Unfortunately I need the resulting build to have no cygwin dependencies, since I'm building a JNI DLL.</p>