summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-09-18 13:38:01 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-09-18 14:57:06 (GMT)
commit96ac9ef5be29dee88f24cf583ca8c53be481bb8f (patch)
treec6c31c525aceeab4b98a21deef53dc92b7c6f3d0
parentabd5db62fdec410eaf857b6eb107602734c87999 (diff)
downloadbuildroot-96ac9ef5be29dee88f24cf583ca8c53be481bb8f.tar.gz
buildroot-96ac9ef5be29dee88f24cf583ca8c53be481bb8f.tar.bz2
gettext: fixup library permissions
libintl.so* is 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/gettext/gettext.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/gettext/gettext.mk b/package/gettext/gettext.mk
index baf42ef..7af2035 100644
--- a/package/gettext/gettext.mk
+++ b/package/gettext/gettext.mk
@@ -58,5 +58,12 @@ endef
endif
endif # GETTEXT_TOOLS = n
+# Library lacks +x so strip skips it
+define GETTEXT_FIX_LIBRARY_MODE
+ -chmod +x $(TARGET_DIR)/usr/lib/libintl.so*
+endef
+
+GETTEXT_POST_INSTALL_TARGET_HOOKS += GETTEXT_FIX_LIBRARY_MODE
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))