[Zlib-devel] [PATCH] Out-of-srcdir builds, -Werror resistance
Mark Adler
madler at madler.net
Tue Jul 24 14:05:21 EDT 2012
On Jul 21, 2012, at 11:18 PM, Daniel Richard G. wrote:
> 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?
I suppose, but it seems awfully messy.
How about instead for an out-of-srcdir build the makefile deletes zconf.h from the srcdir? I'm fine with that, since make distclean will put it back.
Mark
More information about the Zlib-devel
mailing list