Fortran Programming Guide

Static Linking

While building the executable file, the static linker searches for any libraries in the following paths (among others), in the specified order:

<install-point>/SUNWspro/lib

Sun shared libraries 

/usr/ccs/lib/

Standard location for SVr4 software 

/usr/lib

Standard location for UNIX software 

These are the default paths used by the linker.