This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Cygwin + zlib
- From: NightStrike <nightstrike at gmail dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Fri, 24 Feb 2017 12:55:15 -0500
- Subject: Cygwin + zlib
- Authentication-results: sourceware.org; auth=none
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?