From: Hans-Christian Egtvedt Date: Fri, 12 Dec 2008 09:03:47 +0000 (-0000) Subject: libiconv: strip installed library and remove the preloadable library X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2bb1785adb14b50a648ab75614f78a3c7a5e5edc;p=buildroot.git libiconv: strip installed library and remove the preloadable library This patch is mainly for size reduction, removing more than half the needed footprint. Signed-off-by: Hans-Christian Egtvedt --- diff --git a/package/libiconv/libiconv.mk b/package/libiconv/libiconv.mk index 2026991c06..9153d0504a 100644 --- a/package/libiconv/libiconv.mk +++ b/package/libiconv/libiconv.mk @@ -16,3 +16,11 @@ LIBICONV_DEPENDENCIES = uclibc $(eval $(call AUTOTARGETS,package,libiconv)) +$(LIBICONV_HOOK_POST_INSTALL): + # Remove not used preloadable libiconv.so + rm -f $(STAGING_DIR)/usr/lib/preloadable_libiconv.so + rm -f $(TARGET_DIR)/usr/lib/preloadable_libiconv.so +ifneq ($(BR2_ENABLE_DEBUG),y) + $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libiconv.so.* +endif + touch $@