When compiling with ifx, a ./configure script generated by GNU Autconf
reports an error message similar to:
checking for Fortran 77 libraries of ifx... -loopopt=0 \
-L/lib/../lib64 -L/lib/../lib64/ -L/usr/lib/../lib64 \
-L/usr/lib/../lib64/ -L/lib64 -L/lib/ -L/usr/lib64 -L/usr/lib \
-lifport -lifcoremt -limf -lsvml -lm -lipgo -lirc -lpthread \
-lirc_s -ldl
configure: WARNING: FLIBS does not work
checking for ifx flag to add single underscore to external names... none
checking for dummy main to link with Fortran 77 libraries... unknown
configure: error: in '/path/to/build/dir':
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details
make: *** [build/config.status] Error 1
Examining the config.log file shows that the error causing ./configure to exit was:
ld: cannot find -loopopt=0
The patch drops the first 2 parameters passed to clang, i.e.:
`-mllvm -loopopt=0` parameters are dropped when checking for the libraries.
Resolves: RHEL-40719
Reviewed-by: Carlos O'Donell <carlos@redhat.com>