Thanks, I installed that with a smaller commit message.

The rest of Autoconf uses 'mingw*' instead of '*mingw*' so I removed the leading '*' in a followup patch; hope that's OK.

See attached.
>From 696684fff56e05c2af9f85e3f41401dbf1920f8c Mon Sep 17 00:00:00 2001
From: Keno Fischer <k...@juliacomputing.com>
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

>From 32e53cd79384fc243300eb3d66dde83d8e8b13e2 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Wed, 1 Sep 2021 19:07:32 -0700
Subject: [PATCH 2/2] =?UTF-8?q?fortran:=20*mingw*=20=E2=86=92=20mingw*=20i?=
 =?UTF-8?q?n=20previous=20patch?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Omit a ‘*’.
---
 lib/autoconf/fortran.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4
index 8d682152..1d2bdda3 100644
--- a/lib/autoconf/fortran.m4
+++ b/lib/autoconf/fortran.m4
@@ -668,7 +668,7 @@ while test $[@%:@] != 1; do
 	-lkernel32 | -lmingw* | -lmoldname)
 	  # Ignore this library only on Windows-like systems.
 	  case $host_os in
-	  cygwin* | msys* | *mingw*) ;;
+	  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

Reply via email to