1 --- zlib-1.2.1/Makefile.in
2 +++ zlib-1.2.1/Makefile.in
4 OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
5 zutil.o inflate.o infback.o inftrees.o inffast.o
7 +PIC_OBJS = $(OBJS:%.o=%.lo)
10 # to use the asm code: make OBJA=match.o
16 -$(SHAREDLIBV): $(OBJS)
17 - $(LDSHARED) -o $@ $(OBJS) -lc
19 + $(CC) $(CFLAGS) -DPIC -fPIC -c $< -o $@
21 +$(SHAREDLIBV): $(PIC_OBJS)
22 + $(LDSHARED) -o $@ $(PIC_OBJS) -lc
23 rm -f $(SHAREDLIB) $(SHAREDLIBM)
25 ln -s $@ $(SHAREDLIBM)
27 minigzip$(EXE): minigzip.o $(LIBS)
28 $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS)
31 +install-libs: $(LIBS)
32 -@if [ ! -d $(exec_prefix) ]; then mkdir -p $(exec_prefix); fi
33 - -@if [ ! -d $(includedir) ]; then mkdir -p $(includedir); fi
34 -@if [ ! -d $(libdir) ]; then mkdir -p $(libdir); fi
35 -@if [ ! -d $(man3dir) ]; then mkdir -p $(man3dir); fi
36 - cp zlib.h zconf.h $(includedir)
37 - chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
39 cd $(libdir); chmod 755 $(LIBS)
40 -@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
42 # The ranlib in install is needed on NeXTSTEP which checks file times
43 # ldconfig is for Linux
45 +install: install-libs
46 + -@if [ ! -d $(includedir) ]; then mkdir $(includedir); fi
47 + cp zlib.h zconf.h $(includedir)
48 + chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
52 cd $(libdir); rm -f libz.a; \
57 - rm -f *.o *~ example$(EXE) minigzip$(EXE) \
58 + rm -f *.lo *.o *~ example$(EXE) minigzip$(EXE) \
59 libz.* foo.gz so_locations \
60 _match.s maketree contrib/infback9/*.o
62 --- zlib-1.2.1/configure
63 +++ zlib-1.2.1/configure
65 if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
66 test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
69 + LIBS="$LIBS $SHAREDLIBV"
70 echo Building shared library $SHAREDLIBV with $CC.
71 elif test -z "$old_cc" -a -z "$old_cflags"; then
72 echo No shared library support.