[Zlib-devel] zlib 1.2.4 released
Mark Adler
madler at alumni.caltech.edu
Sat Mar 13 21:22:35 EST 2010
On Mar 12, 2010, at 12:03 PM, Volker Grabsch wrote:
> There appears to be a problem in Makefile.in, too, because there
> are at least two commands which assume that $(SHAREDLIB) as well
> as $(SHAREDLIBV) and $(STATICLIB) are always nonempty:
The patch for this is below.
Mark
--- ../zlib-1.2.4-pre/Makefile.in 2010-02-22 20:42:45.000000000 -0800
+++ Makefile.in 2010-03-13 18:10:27.000000000 -0800
@@ -164,9 +164,10 @@
- at if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi
- at if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi
cp $(LIBS) $(DESTDIR)$(libdir)
- cd $(DESTDIR)$(libdir); chmod 755 $(SHAREDLIB) ; chmod u=rw,go=r $(STATICLIB)
+ cd $(DESTDIR)$(libdir); chmod u=rw,go=r $(STATICLIB)
-@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
- cd $(DESTDIR)$(libdir); if test -f $(SHAREDLIBV); then \
+ - at cd $(DESTDIR)$(libdir); if test "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \
+ chmod 755 $(SHAREDLIBV); \
rm -f $(SHAREDLIB) $(SHAREDLIBM); \
ln -s $(SHAREDLIBV) $(SHAREDLIB); \
ln -s $(SHAREDLIBV) $(SHAREDLIBM); \
@@ -187,7 +188,7 @@
uninstall:
cd $(DESTDIR)$(includedir); rm -f zlib.h zconf.h
cd $(DESTDIR)$(libdir); rm -f libz.a; \
- if test -f $(SHAREDLIBV); then \
+ if test "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \
rm -f $(SHAREDLIBV) $(SHAREDLIB) $(SHAREDLIBM); \
fi
cd $(DESTDIR)$(man3dir); rm -f zlib.3
More information about the Zlib-devel
mailing list