I performed the two steps but compiler exits with error.
My steps are here:
$ pgf77 -fPIC -c dummy.F
$ pgf77 -fPIC -shared -o util.o dummy.o
/usr/bin/ld: dummy.o: relocation R_X86_64_PC32 against `__pgio_ini’ can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
How to solve it?