The dynamic linker searches for shared libraries at runtime, in the specified order:
Paths specified by user with -Rpath
/opt/SUNWspro/lib/
/usr/lib standard UNIX default
The search paths are built into the executable.