Fortran User's Guide

-G

Build a dynamic shared library instead of an executable file.

    SPARC: 77/90 x86:77

Direct the linker to build a shared dynamic library. Without -G, the linker builds an executable file. With -G, it builds a dynamic library. Use -o with -G to specify the name of the file to be written. See the Fortran Programming Guide chapter Libraries for details.