Sun Studio 12: Fortran User's Guide

3.4.84 –pic

Compile position–independent code for shared library.

On SPARC, –pic is equivalent to -xcode=pic13. See 3.4.122 –xcode=keyword for more information on position-indepented code.

On x86, produces position-independent code. Use this option to compile source files when building a shared library. Each reference to a global datum is generated as a dereference of a pointer in the global offset table. Each function call is generated in pc-relative addressing mode through a procedure linkage table.