[Zlib-devel] [patch] fix installing when shared libs are disabled

Mike Frysinger vapier at gentoo.org
Tue Dec 7 16:52:55 EST 2010


only install the shared lib if it's enabled

--- a/Makefile.in
+++ b/Makefile.in
@@ -168,7 +168,9 @@
 	- at if [ ! -d $(DESTDIR)$(man3dir)      ]; then mkdir -p $(DESTDIR)$(man3dir); fi
 	- at if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi
 	cp $(STATICLIB) $(DESTDIR)$(libdir)
-	cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)
+	if test "$(SHAREDLIBV)" ; then \
+	  cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir); \
+	fi
 	cd $(DESTDIR)$(libdir); chmod u=rw,go=r $(STATICLIB)
 	-@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
 	- at cd $(DESTDIR)$(sharedlibdir); if test "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \
-mike




More information about the Zlib-devel mailing list