diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.5.bb b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.5.bb
index 9a8952df32..e1d8ed06e1 100644
--- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.5.bb
+++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.2.5.bb
@@ -30,7 +30,10 @@ INSANE_SKIP += "pep517-backend"
 
 REQUIRED_DISTRO_FEATURES = "x11"
 
-export WX_CONFIG = "'${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config --prefix=${STAGING_EXECPREFIXDIR} --baselib=${baselib}'"
+# --baselib came from an out-of-tree wx-config patch that wxwidgets dropped in
+# 3.2.11; wx-config now rejects it. It is not needed either, as the wxwidgets
+# recipe rewrites libdir in wx-config to an absolute ${STAGING_LIBDIR}.
+export WX_CONFIG = "'${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config --prefix=${STAGING_EXECPREFIXDIR}'"
 
 RDEPENDS:${PN} = "\
     python3-difflib \
