[Buildroot] [PATCH 1/1] readline: fix stripping on target
Carlos Santos
casantos at datacom.ind.br
Thu Jan 7 16:56:22 UTC 2016
Libraries got installed read only, so strip failed.
Signed-off-by: Carlos Santos <casantos at datacom.ind.br>
---
package/readline/readline.mk | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/package/readline/readline.mk b/package/readline/readline.mk
index 3d31696..58cd948 100644
--- a/package/readline/readline.mk
+++ b/package/readline/readline.mk
@@ -24,5 +24,14 @@ 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
+ for i in $(addprefix $(TARGET_DIR)/usr/lib/,libhistory.so.* libreadline.so.*); \
+ do chmod +w $$i; done
+endef
+READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_INSTALL_FIXUPS_SHARED
+endif
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))
--
1.8.3.1
More information about the buildroot
mailing list