Solaris 1.x to 2.x Transition Guide

Search Path Rules

The dynamic linker and the runtime linker determine their search paths through a different algorithm from that used by the SunOS release 4.x linker.

The examples below compare the search paths for the dynamic linker and the runtime linker for SunOS release 4.x and the Solaris 2.6 operating environment. Notice that in the latter, the search path for the link editor and the runtime linker are affected by the LD_LIBRARY_PATH setting.

SunOS release 4.x linker search paths:

Solaris 2.6 linker search paths (with LD_LIBRARY_PATH=dirlist1):

Solaris 2.6 linker search paths (with LD_LIBRARY_PATH=dirlist1,dirlist2):