I've been trying to compile ISSM on Ubuntu 21.10 with python bindings and ran into linking issues.
The manual states (only relevant snippets are shown):
./configure \
--prefix="${ISSM_DIR}" \
--with-fortran-lib="-L/usr/local/Cellar/gcc/10.2.0/lib/gcc/10 -lgfortran"
In order to get it to link properly, I replaced the above with:
./configure \
--prefix="${ISSM_DIR}" \
--with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu/10/ -lgfortran -lpthread" \
I changed the path to the default location and added "-lpthread" flag, which did the trick.