Sun Studio 12: Fortran Programming Guide

4.3.1.2 Dynamic Linking

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

The search paths are built into the executable.