Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] zlib: fix shared lib logic for static-only targets
@ 2010-11-20  2:35 Mike Frysinger
  2010-11-20  3:45 ` [Buildroot] [PATCH v2] " Mike Frysinger
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2010-11-20  2:35 UTC (permalink / raw)
  To: buildroot

FLAT targets only support static libraries.  The zlib code atm though
assumes a libz.so is always created.  So have the install target check
to see if libz.so exists before trying to install it.

While we're here, also punt the package-local stripping.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 package/zlib/zlib.mk |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/package/zlib/zlib.mk b/package/zlib/zlib.mk
index 751cfc1..a4da4fa 100644
--- a/package/zlib/zlib.mk
+++ b/package/zlib/zlib.mk
@@ -72,8 +72,9 @@ endif
 
 define ZLIB_INSTALL_TARGET_CMDS
 	mkdir -p $(TARGET_DIR)/usr/lib
-	cp -dpf $(@D)/libz.so* $(TARGET_DIR)/usr/lib
-	-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libz.so*
+	if [ -e "$(@D)/libz.so" ]; then \
+		cp -dpf $(@D)/libz.so* $(TARGET_DIR)/usr/lib; \
+	fi
 	$(INSTALL) -D $(@D)/libz.a $(TARGET_DIR)/usr/lib/libz.a
 	$(ZLIB_INSTALL_TARGET_HEADERS)
 endef
-- 
1.7.3.2

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

end of thread, other threads:[~2010-11-24 19:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-20  2:35 [Buildroot] [PATCH] zlib: fix shared lib logic for static-only targets Mike Frysinger
2010-11-20  3:45 ` [Buildroot] [PATCH v2] " Mike Frysinger
2010-11-24 15:24   ` Peter Korsgaard
2010-11-24 18:56     ` Sergio Monteiro Basto
2010-11-24 19:59       ` Peter Korsgaard

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