Fortran Programming Guide

Search Order for Standard Library Paths

The standard library search paths used by the linker are determined by the installation path, and they differ for static and dynamic loading. <install-point> is the path to where the Fortran compilers have been installed. In a standard install of the software this is /opt .

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.

Dynamic Linking

The dynamic linker searches for shared libraries at runtime, in the specified order:

The search paths are built into the executable.