http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52850
--- Comment #3 from Daniel Richard G. <skunk at iskunk dot org> 2012-06-07 21:59:39 UTC --- Created attachment 27582 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27582 Proposed fix Since the in-tree zlib is always built as a static archive, we can link it in with an explicit path rather than -lz (and still use the latter when using the system zlib). How does this look?