From: Arnout Vandecappelle <arnout@mind.be>
To: Norbert Lange <nolange79@gmail.com>, buildroot@buildroot.org
Cc: Phil Eichinger <phil.eichinger@gmail.com>
Subject: Re: [Buildroot] [PATCH v3 6/7] package/zsh: Enable dynamic modules
Date: Thu, 28 Jul 2022 21:14:40 +0200 [thread overview]
Message-ID: <a8bc1cc1-4ff7-43a7-6239-9d9da91fb570@mind.be> (raw)
In-Reply-To: <20220222102211.74573-7-nolange79@gmail.com>
On 22/02/2022 11:22, Norbert Lange wrote:
> 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.
While reviewing this, I noticed that there are many more things that zsh uses
TRY_RUN for, so I'll send a patch with more cache variable overrides.
>
> Signed-off-by: Norbert Lange <nolange79@gmail.com>
>
> ---
> v1:
> - so far only tested with glibc
Perhaps we need a runtime test? I'm not actually worried about non-glibc
libraries (though I would make the runtime test with uclibc). It would however
be useful to have a runtime test that checks 32 and 64 bit targets - the patch
that I'm sending is mainly about that. Currently it always assumes 32 bit (which
I guess is mostly OK anyway).
Regards,
Arnout
> ---
> package/zsh/zsh.mk | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/package/zsh/zsh.mk b/package/zsh/zsh.mk
> index c5ab7c2fae..c26a00c430 100644
> --- a/package/zsh/zsh.mk
> +++ b/package/zsh/zsh.mk
> @@ -36,6 +36,14 @@ else
> ZSH_CONF_OPTS += --disable-pcre
> endif
>
> +ifneq ($(BR2_STATIC_LIBS),y)
> +# zsh assumes shared libs to be not available when crosscompiling
> +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
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-07-28 19:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-22 10:22 [Buildroot] Patch series Norbert Lange
2022-02-22 10:22 ` [Buildroot] [PATCH v3 1/7] package/pkg-cmake.mk: use /run as runtime path Norbert Lange
2022-02-22 10:22 ` [Buildroot] [PATCH v3 2/7] pkg-autotools: optimistically set runstatedir Norbert Lange
2022-09-10 12:35 ` Yann E. MORIN
2022-02-22 10:22 ` [Buildroot] [PATCH v3 3/7] package/systemd: use current tool for generating HWDB Norbert Lange
2022-07-28 19:09 ` Arnout Vandecappelle
2022-02-22 10:22 ` [Buildroot] [PATCH v3 4/7] package/systemd: remove hwdb-update service Norbert Lange
2022-02-22 10:22 ` [Buildroot] [PATCH v3 5/7] Makefile: remove /usr/lib/rpm directory on target Norbert Lange
2022-02-22 10:22 ` [Buildroot] [PATCH v3 6/7] package/zsh: Enable dynamic modules Norbert Lange
2022-07-28 19:14 ` Arnout Vandecappelle [this message]
2022-02-22 10:22 ` [Buildroot] [PATCH v3 7/7] package/zsh: enable static regex module Norbert Lange
2022-07-28 19:16 ` Arnout Vandecappelle
2022-07-28 19:05 ` [Buildroot] Patch series Arnout Vandecappelle
2022-07-29 8:00 ` Norbert Lange
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a8bc1cc1-4ff7-43a7-6239-9d9da91fb570@mind.be \
--to=arnout@mind.be \
--cc=buildroot@buildroot.org \
--cc=nolange79@gmail.com \
--cc=phil.eichinger@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.