LCC: link with -lgfortran instead of -llfortran since 1.26.03
Since LCC 1.26.03, compiler developers decided to rename liblfortran to libgfortran (internal reference: mcstbug#131633). The first commit in this MR should fix this, and the problem discussed in #23646 (closed) and causing latest nightly builds on yukari.lab.sun.mcst.ru
to fail as for now.
Additionally, there's a bunch other fixes,
that make CMake tests completing successfully on older versions of LCC and/or OS Elbrus, which are (a bit unfortunately) still used by people.
Performed all tests on the following setups:
- Ubuntu20.04.3-gcc9.4.0-x86_64
- Elbrus-OSL4.0-lcc1.23.19
- Elbrus-OSL6.0.1-lcc1.25.14
- Elbrus-OSL6.0-lcc1.25.17
- Elbrus-OSL7.1-lcc1.26.12
All tests were successful, no errors or warnings issued.
Fixes: #23646 (closed)
Backport: release
Edited by Brad King