Răsfoiți Sursa

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 <nolange79@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Norbert Lange 3 ani în urmă
părinte
comite
2f32e668aa
1 a modificat fișierele cu 13 adăugiri și 0 ștergeri
  1. 13 0
      package/zsh/zsh.mk

+ 13 - 0
package/zsh/zsh.mk

@@ -36,6 +36,19 @@ else
 ZSH_CONF_OPTS += --disable-pcre
 ZSH_CONF_OPTS += --disable-pcre
 endif
 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
 # Add /bin/zsh to /etc/shells otherwise some login tools like dropbear
 # can reject the user connection. See man shells.
 # can reject the user connection. See man shells.
 define ZSH_ADD_ZSH_TO_SHELLS
 define ZSH_ADD_ZSH_TO_SHELLS