[Zlib-devel] [PATCH] Out-of-srcdir builds, -Werror resistance
Daniel Richard G.
oss at teragram.com
Sun Jul 22 02:18:08 EDT 2012
On Sat, 21 Jul 2012, Mark Adler wrote:
> 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.
Well, the zlib.h #include could be rewritten as e.g.
#ifdef ZLIB_INCPATH_SET
# include <zlib.h>
#else
# include "zlib.h"
#endif
and then builds which set -Iblah appropriately would also do
-DZLIB_INCPATH_SET. Would this work for you, as a way of catering to both
out-of-source-tree and command-line builds?
--Daniel
--
Daniel Richard G. || danielg at teragram.com || Software Developer
Teragram Linguistic Technologies (a division of SAS)
http://www.teragram.com/
More information about the Zlib-devel
mailing list