zsh: move --disable-dynamic to a static PACKAGECONFIG

Allow building zsh with dynamically loadable modules by moving
--disable-dynamic into a PACKAGECONFIG named static, enabled by
default to keep the current behaviour.

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Sean Nyekjaer authored and Khem Raj committed 2026-11-06 00:15:42 -08:00
1 parent 93bcd81032
commit 2951c149c5
1 file changed
+2 -1
+2 -1
View File
@@ -30,7 +30,6 @@ EXTRA_OECONF = " \
--with-term-lib='ncursesw ncurses' \
--enable-cap \
--enable-multibyte \
--disable-dynamic \
zsh_cv_shared_environ=yes \
"
@@ -44,6 +43,8 @@ ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
ALTERNATIVE_PRIORITY = "90"
PACKAGECONFIG ??= "static"
PACKAGECONFIG[static] = "--disable-dynamic,--enable-dynamic"
# Needed for manpages.bbclass, but they're always installed
PACKAGECONFIG[manpages] = ""