summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/readline/readline.mk8
1 files changed, 8 insertions, 0 deletions
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))
OpenPOWER on IntegriCloud