]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
fortran.m4: Filter mingw intrinsic libraries
authorKeno Fischer <keno@juliacomputing.com>
Wed, 1 Sep 2021 23:39:32 +0000 (19:39 -0400)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 2 Sep 2021 02:08:20 +0000 (19:08 -0700)
* 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

index d393c669a9e0b69992aa8dc73f65bb9466156b98..8d6821528fd8ad58cdbf9ee01edfcdba5921daa2 100644 (file)
@@ -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")