https://github.com/libsdl-org/autoconf/commit/997dfc9c07ff42230464be334f0d73e7829c62d8
From 997dfc9c07ff42230464be334f0d73e7829c62d8 Mon Sep 17 00:00:00 2001
From: Keno Fischer <[EMAIL REDACTED]>
Date: Wed, 1 Sep 2021 19:39:32 -0400
Subject: [PATCH] fortran.m4: Filter mingw intrinsic libraries
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
Filter out mingw libraries too.
Problem and fix reported by Keno Fischer in
https://lists.gnu.org/r/autoconf-patches/2021-09/msg00000.html
Copyright-paperwork-exempt: Yes
---
lib/autoconf/fortran.m4 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4
index d393c669..8d682152 100644
--- a/lib/autoconf/fortran.m4
+++ b/lib/autoconf/fortran.m4
@@ -665,10 +665,10 @@ while test $[@%:@] != 1; do
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
|-LANG:=* | -LIST:* | -LNO:* | -link)
;;
- -lkernel32)
+ -lkernel32 | -lmingw* | -lmoldname)
# Ignore this library only on Windows-like systems.
case $host_os in
- cygwin* | msys* ) ;;
+ cygwin* | msys* | *mingw*) ;;
*)
_AC_LIST_MEMBER_IF($ac_arg, $ac_cv_[]_AC_LANG_ABBREV[]_libs, ,
ac_cv_[]_AC_LANG_ABBREV[]_libs="$ac_cv_[]_AC_LANG_ABBREV[]_libs $ac_arg")