aboutsummaryrefslogtreecommitdiff
path: root/package/readline
diff options
context:
space:
mode:
authorGravatar Carlos Santos <casantos@datacom.ind.br>2016-01-07 14:56:22 -0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2016-01-08 19:17:10 +0100
commitaf8501cf963d2b23f8c092615a4c047da92accfd (patch)
treef11403171b9cc055504341ced9d00566e856d94d /package/readline
parent1da563a7fa5eb9f4cf2644cbbbc1411dae45d3d3 (diff)
downloadbuildroot-af8501cf963d2b23f8c092615a4c047da92accfd.tar.gz
buildroot-af8501cf963d2b23f8c092615a4c047da92accfd.tar.bz2
readline: fix stripping on target
Libraries got installed read only, so strip failed. [Peter: simplify chmod logic] Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/readline')
-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))