From: Carlos Santos Date: Thu, 7 Jan 2016 16:56:22 +0000 (-0200) Subject: readline: fix stripping on target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af8501cf963d2b23f8c092615a4c047da92accfd;p=buildroot.git readline: fix stripping on target Libraries got installed read only, so strip failed. [Peter: simplify chmod logic] Signed-off-by: Carlos Santos Acked-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- diff --git a/package/readline/readline.mk b/package/readline/readline.mk index 3d3169627d..763197085e 100644 --- a/package/readline/readline.mk +++ b/package/readline/readline.mk @@ -24,5 +24,13 @@ define READLINE_INSTALL_INPUTRC endef READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_INSTALL_INPUTRC +ifneq ($(BR2_STATIC_LIBS),y) +# libraries get installed read only, so strip fails +define READLINE_INSTALL_FIXUPS_SHARED + chmod +w $(addprefix $(TARGET_DIR)/usr/lib/,libhistory.so.* libreadline.so.*) +endef +READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_INSTALL_FIXUPS_SHARED +endif + $(eval $(autotools-package)) $(eval $(host-autotools-package))