zsh: add gdbm PACKAGECONFIG

The zsh/db/gdbm module is link=dynamic only, so add a PACKAGECONFIG for
it that conflicts with static.

When static is disabled, preset the dynamic loading checks configure
can't run when cross compiling.

AI-Generated: Uses Claude Code
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:43 -08:00
1 parent 2951c149c5
commit 22c06dfc4f
1 file changed
+2 -1
+2 -1
View File
@@ -44,7 +44,8 @@ ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
ALTERNATIVE_PRIORITY = "90"
PACKAGECONFIG ??= "static"
PACKAGECONFIG[static] = "--disable-dynamic,--enable-dynamic"
PACKAGECONFIG[static] = "--disable-dynamic,--enable-dynamic zsh_cv_sys_dynamic_rtld_global=yes zsh_cv_sys_dynamic_execsyms=yes"
PACKAGECONFIG[gdbm] = "--enable-gdbm,--disable-gdbm,gdbm,,,static"
# Needed for manpages.bbclass, but they're always installed
PACKAGECONFIG[manpages] = ""