After having upgraded Big Sur to the latest 11.1 version, I get ld: library not found for -lSystem when compiling using gfortran. With the previous version of Big Sur I got