[Zlib-devel] [PATCH] Out-of-srcdir builds, -Werror resistance
Daniel Richard G.
oss at teragram.com
Tue May 29 14:55:08 EDT 2012
Hello list, I have a few changes to contribute.
The first patch (zlib-build.patch) enables building outside of the source
tree (builddir != srcdir) with Make programs that understand VPATH.
In addition to these changes, the zconf.h file in the source tree needs to
be removed, because if it is present in both srcdir and builddir, the
#include"zconf.h" in zlib.h will incorrectly pull in the former instead of
the latter.
The second patch (zlib-conf.patch) makes the configure script robust to a
few less-common scenarios:
* ar(1) programs that generate a file named "--version" when invoked as "ar
--version"
* Configuring with GCC + "-Wmissing-declarations -Werror"
* Configuring with GCC + "-Wprototype -Werror"
(The latter two points are holdovers from the days when zlib checked for
compiler warnings from the configure-test programs. Eliminating the warnings
may no longer be a necessity sans -Werror, but it does keep things cleaner.)
--Daniel
--
Daniel Richard G. || danielg at teragram.com || Software Developer
Teragram Linguistic Technologies (a division of SAS)
http://www.teragram.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zlib-build.patch.txt
Type: application/octet-stream
Size: 4919 bytes
Desc: not available
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20120529/58fff05f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zlib-conf.patch.txt
Type: application/octet-stream
Size: 4206 bytes
Desc: not available
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20120529/58fff05f/attachment-0001.obj>
More information about the Zlib-devel
mailing list