[Zlib-devel] [PATCH] Out-of-srcdir builds, -Werror resistance
Mark Adler
madler at madler.net
Sun Jul 22 01:42:43 EDT 2012
On Jun 10, 2012, at 3:24 PM, Daniel Richard G. wrote:
> * All #include"zlib.h" references in the source are changed to #include<zlib.h>
Unfortunately, I can't accept that change. That again screws up people who are just compiling zlib without scripts. It may pull zlib.h from their system instead of the current directory, or simply fail. They would have to use the -I option or equivalent, if their system even has an equivalent.
My requirement is that something as simple as the following should always work in the zlib source directory in its native form, i.e. untouched since extracted from the archive:
cc -c *.c
ar rc libz.a *.o
and voilà, you would have a usable zlib library.
Mark
More information about the Zlib-devel
mailing list