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 .
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.
The dynamic linker searches for shared libraries at runtime, in the specified order:
Paths specified by user with -Rpath
<install-point>/SUNWspro/lib/
/usr/lib standard UNIX default
The search paths are built into the executable.