File gdb-12.1-fix-finding-python.patch of Package mingw32-gdb
--- a/gdb/configure.ac 2022-10-19 12:40:38.933378625 +0000
+++ b/gdb/configure.ac 2022-10-19 12:41:07.064150880 +0000
@@ -880,6 +880,10 @@
elif test "${have_python_config}" != failed; then
if test "${have_libpython}" = no; then
AC_TRY_LIBPYTHON(have_libpython,
+ ${python_includes}, "-lpython3.9 ${python_libs}")
+ fi
+ if test "${have_libpython}" = no; then
+ AC_TRY_LIBPYTHON(have_libpython,
${python_includes}, "-lpython2.7 ${python_libs}")
fi
if test "${have_libpython}" = no; then