Commit af8501cf authored by Carlos Santos's avatar Carlos Santos Committed by Peter Korsgaard
Browse files

readline: fix stripping on target



Libraries got installed read only, so strip failed.

[Peter: simplify chmod logic]
Signed-off-by: default avatarCarlos Santos <casantos@datacom.ind.br>
Acked-by: default avatarGustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 1da563a7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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))