>From 696684fff56e05c2af9f85e3f41401dbf1920f8c Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Wed, 1 Sep 2021 19:39:32 -0400 Subject: [PATCH 1/2] 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") -- 2.30.2