diff --git a/meta-oe/recipes-shells/zsh/zsh_5.9.2.bb b/meta-oe/recipes-shells/zsh/zsh_5.9.2.bb
index 37948b5ea5..cb18983f2a 100644
--- a/meta-oe/recipes-shells/zsh/zsh_5.9.2.bb
+++ b/meta-oe/recipes-shells/zsh/zsh_5.9.2.bb
@@ -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] = ""
 
