Commit Graph

2 Commits

Author SHA1 Message Date
Frédéric Bérat
18090ed2d8 Backport: Port AC_F77_LIBRARY_LDFLAGS to oneAPI HPC Toolkit
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>
2024-06-13 15:37:51 +02:00
James Antill
69a7a95541 Auto sync2gitlab import of autoconf-2.69-29.el8.src.rpm 2022-05-26 00:53:44 -04:00