-diff -ruN zlib-1.2.3-orig/Makefile.in zlib-1.2.3-2/Makefile.in
---- zlib-1.2.3-orig/Makefile.in 2005-07-18 10:25:21.000000000 +0800
-+++ zlib-1.2.3-2/Makefile.in 2006-10-16 21:23:27.000000000 +0800
-@@ -25,20 +25,23 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -25,20 +25,23 @@ CFLAGS=-O
# -Wstrict-prototypes -Wmissing-prototypes
LDFLAGS=libz.a
prefix = /usr/local
exec_prefix = ${prefix}
libdir = ${exec_prefix}/lib
-@@ -67,8 +70,8 @@
+@@ -67,8 +70,8 @@ test: all
echo ' *** zlib test FAILED ***'; \
fi
-@ ($(RANLIB) $@ || true) >/dev/null 2>&1
match.o: match.S
-@@ -77,8 +80,10 @@
+@@ -77,8 +80,10 @@ match.o: match.S
mv _match.o match.o
rm -f _match.s
rm -f $(SHAREDLIB) $(SHAREDLIBM)
ln -s $@ $(SHAREDLIB)
ln -s $@ $(SHAREDLIBM)
-@@ -90,23 +95,23 @@
+@@ -90,23 +95,22 @@ minigzip$(EXE): minigzip.o $(LIBS)
$(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS)
install: $(LIBS)
rm -f $(SHAREDLIB) $(SHAREDLIBM); \
ln -s $(SHAREDLIBV) $(SHAREDLIB); \
ln -s $(SHAREDLIBV) $(SHAREDLIBM); \
- (ldconfig || true) >/dev/null 2>&1; \
+- (ldconfig || true) >/dev/null 2>&1; \
fi
- cp zlib.3 $(man3dir)
- chmod 644 $(man3dir)/zlib.3
# The ranlib in install is needed on NeXTSTEP which checks file times
# ldconfig is for Linux
-diff -ruN zlib-1.2.3-orig/configure zlib-1.2.3-2/configure
---- zlib-1.2.3-orig/configure 2005-07-12 04:11:57.000000000 +0800
-+++ zlib-1.2.3-2/configure 2006-10-16 21:25:38.000000000 +0800
-@@ -23,7 +23,7 @@
+--- a/configure
++++ b/configure
+@@ -23,7 +23,7 @@ LDFLAGS="-L. ${LIBS}"
VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`
VER2=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p' < zlib.h`
VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < zlib.h`
RANLIB=${RANLIB-"ranlib"}
prefix=${prefix-/usr/local}
exec_prefix=${exec_prefix-'${prefix}'}
-@@ -73,32 +73,9 @@
+@@ -73,32 +73,9 @@ esac
if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
CC="$cc"
else
# find system name and corresponding cc options
CC=${CC-cc}
-@@ -424,6 +401,29 @@
+@@ -424,6 +401,29 @@ else
echo Checking for mmap support... No.
fi
CPP=${CPP-"$CC -E"}
case $CFLAGS in
*ASMV*)
-@@ -440,20 +440,21 @@
+@@ -440,20 +440,21 @@ rm -f $test.[co] $test $test$shared_ext
# udpate Makefile
sed < Makefile.in "
/^CC *=/s#=.*#=$CC#
+/^mandir *=/s%=.*%= $mandir%
+/^LDFLAGS *=/s%=.*%= $LDFLAGS%
" > Makefile
-diff -ruN zlib-1.2.3-orig/contrib/minizip/Makefile zlib-1.2.3-2/contrib/minizip/Makefile
---- zlib-1.2.3-orig/contrib/minizip/Makefile 2005-07-13 02:08:40.000000000 +0800
-+++ zlib-1.2.3-2/contrib/minizip/Makefile 2006-10-16 21:23:27.000000000 +0800
+--- a/contrib/minizip/Makefile
++++ b/contrib/minizip/Makefile
@@ -1,8 +1,8 @@
CC=cc
-CFLAGS=-O -I../..
.c.o:
$(CC) -c $(CFLAGS) $*.c
-@@ -10,10 +10,10 @@
+@@ -10,10 +10,10 @@ ZIP_OBJS = minizip.o zip.o ioapi.o ../
all: miniunz minizip
miniunz: $(UNZ_OBJS)