summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-09-18 13:38:02 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-09-18 14:57:14 (GMT)
commit22718b0e2c1d2b471ef60dc7992ad94376bb48b7 (patch)
tree55610aa954299f391ddb295c6b9efe70af0cae08
parent96ac9ef5be29dee88f24cf583ca8c53be481bb8f (diff)
downloadbuildroot-22718b0e2c1d2b471ef60dc7992ad94376bb48b7.tar.gz
buildroot-22718b0e2c1d2b471ef60dc7992ad94376bb48b7.tar.bz2
libiconv: fixup library permissions
libiconv.so* and libcharset.so* are installed without +x permissions thus preventing stripping. Fix it up in the post install target hooks. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/libiconv/libiconv.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/libiconv/libiconv.mk b/package/libiconv/libiconv.mk
index d6a1d6f..aa6d6de 100644
--- a/package/libiconv/libiconv.mk
+++ b/package/libiconv/libiconv.mk
@@ -21,6 +21,14 @@ endef
LIBICONV_POST_INSTALL_TARGET_HOOKS += LIBICONV_TARGET_REMOVE_PRELOADABLE_LIBS
LIBICONV_POST_INSTALL_STAGING_HOOKS += LIBICONV_STAGING_REMOVE_PRELOADABLE_LIBS
+# Library lacks +x so strip skips it
+define LIBICONV_FIX_LIBRARY_MODE
+ -chmod +x $(TARGET_DIR)/usr/lib/libcharset.so*
+ -chmod +x $(TARGET_DIR)/usr/lib/libiconv.so*
+endef
+
+LIBICONV_POST_INSTALL_TARGET_HOOKS += LIBICONV_FIX_LIBRARY_MODE
+
$(eval $(autotools-package))
# Configurations where the toolchain supports locales and the libiconv