Skip to content

Commit

Permalink
Add -I../.. -L../.. to CFLAGS for minizip and miniunzip.
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
jrn authored and madler committed Jan 21, 2012
1 parent 17741ef commit ad88c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/minizip/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad88c19

Please sign in to comment.