$ gfortran -fPIC -shared -c test1.f90 $ gfortran -fPIC -shared -o libtest1.so test1.f90 $ ls -s total 28 8 libtest1.so 4 test1.f90 4 test1.fpy 4 test1.mod 4 test1.o 4 test1.py