From 2f32e668aa880c2d4a2cce6c789b7ca7ed6221ba Mon Sep 17 00:00:00 2001 From: Norbert Lange Date: Tue, 22 Feb 2022 11:22:09 +0100 Subject: [PATCH] package/zsh: Enable dynamic modules The autoconf scripts seem to assume that no dynamic loader is available if crosscompiling. This results in only a small set of modules being enabled and linked statically. For comparison, debian patches the fallback to enable dynamic modules (unconditionally). This commit enables modules if shared libraries are enabled. Signed-off-by: Norbert Lange Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/zsh/zsh.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/package/zsh/zsh.mk b/package/zsh/zsh.mk index c5ab7c2fae..f03a2e6982 100644 --- a/package/zsh/zsh.mk +++ b/package/zsh/zsh.mk @@ -36,6 +36,19 @@ else ZSH_CONF_OPTS += --disable-pcre endif +ifneq ($(BR2_STATIC_LIBS),y) +# zsh uses TRY_RUN to determine these +ZSH_CONF_OPTS += \ + zsh_cv_shared_environ=yes \ + zsh_cv_shared_tgetent=yes \ + zsh_cv_shared_tigetstr=yes \ + zsh_cv_sys_dynamic_clash_ok=yes \ + zsh_cv_sys_dynamic_rtld_global=yes \ + zsh_cv_sys_dynamic_execsyms=yes \ + zsh_cv_sys_dynamic_strip_exe=yes \ + zsh_cv_sys_dynamic_strip_lib=yes +endif + # Add /bin/zsh to /etc/shells otherwise some login tools like dropbear # can reject the user connection. See man shells. define ZSH_ADD_ZSH_TO_SHELLS