]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Port AC_F77_LIBRARY_LDFLAGS to oneAPI HPC Toolkit
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Jul 2020 19:56:19 +0000 (12:56 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Jul 2020 21:09:16 +0000 (14:09 -0700)
Problem reported by Bill Dieter in:
https://lists.gnu.org/r/bug-autoconf/2020-07/msg00089.html
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
Defend against ‘clang -mllvm -loopopt=0’.

lib/autoconf/fortran.m4

index 0a0c41684c170c698c01209c5a3e9f121e792922..59a8859b1135aaee75ff091ab5700415676cdeb8 100644 (file)
@@ -698,6 +698,7 @@ while test $[@%:@] != 1; do
        -zallextract*| -zdefaultextract)
          ac_cv_[]_AC_LANG_ABBREV[]_libs="$ac_cv_[]_AC_LANG_ABBREV[]_libs $ac_arg"
          ;;
+       -mllvm) ${2+shift};; # Defend against 'clang -mllvm -loopopt=0'.
          # Ignore everything else.
   esac
 done