[Zlib-devel] [PATCH 1/3] Add -I../.. -L../.. to CFLAGS for minizip and miniunzip

Jonathan Nieder jrnieder at gmail.com
Tue Jan 17 15:26:05 EST 2012


Trying to build miniunzip utility from contrib/minizip after an
autoreconf -f produces

	[...]
	In file included from minizip.c:61:0:
	zip.h:50:18: fatal error: zlib.h: No such file or directory

unless zlib is already installed.  Use AM_CFLAGS to set the include
path and library path to point to the just-build copy of zlib to
fix this.  (This was already done for libminizip but not the binaries
that use it before this patch.)
---
 contrib/minizip/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/minizip/Makefile.am b/contrib/minizip/Makefile.am
index 7a1e3dbf..8f0459ba 100644
--- a/contrib/minizip/Makefile.am
+++ b/contrib/minizip/Makefile.am
@@ -6,7 +6,7 @@ libminizip_la_SOURCES = \
 	unzip.c \
 	zip.c
 
-libminizip_la_CFLAGS = -I../.. -L../..
+AM_CFLAGS = -I../.. -L../..
 libminizip_la_LDFLAGS = -version-info 1:0:0 -lz
 
 minizip_includedir = $(includedir)/minizip
-- 
1.7.9.rc1





More information about the Zlib-devel mailing list