diff --git a/packages/zsh/build.sh b/packages/zsh/build.sh index b881e3dac..c4c88b145 100644 --- a/packages/zsh/build.sh +++ b/packages/zsh/build.sh @@ -6,6 +6,8 @@ TERMUX_PKG_SRCURL=http://www.zsh.org/pub/zsh-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_RM_AFTER_INSTALL="bin/zsh-${TERMUX_PKG_VERSION}" TERMUX_PKG_DEPENDS="libandroid-support, ncurses, termux-tools, command-not-found" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-etcdir=$TERMUX_PREFIX/etc --disable-gdbm --disable-pcre ac_cv_header_utmp_h=no" +# Below needed to force loadable binary modules, but does not currently work: +# TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" zsh_cv_shared_environ=yes" termux_step_post_make_install () { # /etc/zshrc - Run for interactive shells (http://zsh.sourceforge.net/Guide/zshguide02.html): diff --git a/packages/zsh/src-module.c.patch b/packages/zsh/src-module.c.patch new file mode 100644 index 000000000..2ceb3473c --- /dev/null +++ b/packages/zsh/src-module.c.patch @@ -0,0 +1,36 @@ +diff -u -r ../zsh-5.1.1/Src/module.c ./Src/module.c +--- ../zsh-5.1.1/Src/module.c 2015-02-19 14:47:41.000000000 -0500 ++++ ./Src/module.c 2015-11-24 18:38:12.383460402 -0500 +@@ -1496,8 +1496,10 @@ + #else + # ifdef HAVE_DL_H + # include