Here is one way to do it, that seems to work for me:
$ gfortran -print-file-name=libgfortran.so
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/libgfortran.so
Here is one way to do it, that seems to work for me:
$ gfortran -print- file-name= libgfortran. so
/usr/lib/ gcc/x86_ 64-linux- gnu/4.4. 3/libgfortran. so