diff options
author | Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> | 2008-12-12 09:03:47 +0000 |
---|---|---|
committer | Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> | 2008-12-12 09:03:47 +0000 |
commit | 2bb1785adb14b50a648ab75614f78a3c7a5e5edc (patch) | |
tree | eb6ed6bf99f5447f9dab4ae7d34db3cbf82b4634 | |
parent | be866bfcbc0b1f5704d2428261b04043c8d88994 (diff) | |
download | buildroot-novena-2bb1785adb14b50a648ab75614f78a3c7a5e5edc.tar.gz buildroot-novena-2bb1785adb14b50a648ab75614f78a3c7a5e5edc.zip |
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 <hans-christian.egtvedt@atmel.com>
-rw-r--r-- | package/libiconv/libiconv.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/libiconv/libiconv.mk b/package/libiconv/libiconv.mk index 2026991c0..9153d0504 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 $@ |