From af8501cf963d2b23f8c092615a4c047da92accfd Mon Sep 17 00:00:00 2001 From: Carlos Santos Date: Thu, 7 Jan 2016 14:56:22 -0200 Subject: [PATCH] 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 --- package/readline/readline.mk | 8 ++++++++ 1 file changed, 8 insertions(+) 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)) -- 2.30.2