[patch]: Decouple cygwin building from in-tree mingw/w32api building

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Thu Oct 18 07:33:00 GMT 2012

On Wed, 2012-10-17 at 15:32 -0400, Christopher Faylor wrote:
> But, anyway, nevermind.  This shouldn't be a requirement for getting
> these changes checked in.  I'm more concerned with just nuking the
> now-unneeded mingw script.

Draft patch attached, based partially on Kai's.  Yes, it needs a
ChangeLog entry, but it also needs more testing first.

On Cygwin, you need either mingw-gcc-g++ and mingw-zlib, or
mingw64-i686-gcc-g++ with Ports' mingw64-i686-zlib, available here:


On Fedora, you need my cygwin-gcc-c++ plus mingw32-gcc-c++ and
mingw32-zlib-static.  Unfortunately F17's mingw32-headers isn't
(aren't?) new enough, so two files in winsup/utils wouldn't compile
until I manually upgraded to
mingw32-headers-2.0.999-0.13.trunk.20121016.fc19.noarch.rpm from
rawhide.  F16 (which uses the mingw.org toolchain) should also be okay.

Apply the patch, rm -r winsup/mingw/ winsup/w32api/ winsup/utils/mingw,
run autoconf in winsup/utils, then configure and build.  Tested so far
with CVS HEAD on Cygwin and Fedora 17 (with the aforementioned issue)
with our new w32api and the i686-w64-mingw32 toolchain; I have NOT yet
tested the resulting cygwin1.dll.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin-external-mingw.patch
Type: text/x-patch
Size: 12718 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20121018/89d63657/attachment.bin>

More information about the Cygwin-patches mailing list