Currently, to build natively on cygwin, this patch is required to zlib: https://github.com/Alexpux/MSYS2-packages/blob/master/zlib/1.2.11-cygwin-no-widechar.patch
Otherwise, this error occurs: ./../zlib/libz.a(libz_a-gzlib.o):gzlib.c:(.text+0x646): undefined reference to `_wopen' ./../zlib/libz.a(libz_a-gzlib.o):gzlib.c:(.text+0x646): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_wopen' Given that cygwin is a supported system, and given that zlib is in-tree (and was recently updated), does it make sense to include this patch in the gcc in-tree version of zlib?