Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] zlib: fix installing when static-only
@ 2010-12-07 21:57 Mike Frysinger
  2010-12-11 21:53 ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2010-12-07 21:57 UTC (permalink / raw)
  To: buildroot

The switch from manual targets to using zlib's targets to fix shared
building/installing doesn't work quite right as zlib itself doesn't
handle static-only installs fully.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 package/zlib/zlib-1.2.5-no-shared.patch |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 package/zlib/zlib-1.2.5-no-shared.patch

diff --git a/package/zlib/zlib-1.2.5-no-shared.patch b/package/zlib/zlib-1.2.5-no-shared.patch
new file mode 100644
index 0000000..2b82f49
--- /dev/null
+++ b/package/zlib/zlib-1.2.5-no-shared.patch
@@ -0,0 +1,15 @@
+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 \
-- 
1.7.3.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-12  8:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-07 21:57 [Buildroot] [PATCH] zlib: fix installing when static-only Mike Frysinger
2010-12-11 21:53 ` Peter Korsgaard
2010-12-12  3:52   ` Mike Frysinger
2010-12-12  8:11     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox