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.
that make CMake tests completing successfully on older versions of LCC and/or OS Elbrus, which are (a bit unfortunately) still used by people.
Additionally, there's a bunch other fixes,
Performed all tests on the following setups:
All tests were successful, no errors or warnings issued.
Fixes: #23646 (closed)