Chapter 5 193
Creating and Using Libraries
Using Shared Libraries in 64-bit mode
The linker does not look in /var/tmp to find shared libraries because in
32-bit mode the directories specified by +b pathname are only searched
at run time.
Because libme.sl is specified with the -l option, it is subject to
dynamic path searching.
At run time, the dynamic loader looks for shared libraries used by main
in the following order:
1. ./libbar.sl found
2. /var/tmp/libme.sl found
3. ./libc.sl not found
4. /usr/lib/libc.sl found
NOTE In 32-bit mode, the dynamic loader does not search the default
directories to find libme.sl at run time. In 64 bit mode, by default, the
dynamic loader looks in the default directories.