Multiple Fortran support in Debian/Ubuntu

I would assume that renaming library names breaks many build systems, so using different directories might be the better option.
Aren’t there any “lessons learned” from C++? The situation of having at least two mature compilers exists there for longer.