Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
User Commands (k - l) ld(1)
2. Public libraries (installed by the system operator) ***
3. Locations specified by the current -libvol and -L flags
4. Default locations in the OSS environment:
/lib:/usr/lib:/usr/local/lib:/G/SYSTEM/ZDLL *
The value of the COMP_ROOT environment variable is added to the beginning of /lib,
/usr/lib, and /usr/local/lib. By default, the value of COMP_ROOT is null in the OSS
environment.
5. Default locations in the Guardian environment: $SYSTEM.ZDLL ***
The steps marked by an asterisk (*) are skipped when the -nostdlib or -no_stdlib flag is in effect,
and the steps marked by two asterisks (**) are skipped only when the -bstatic flag is used.
Archive libraries encountered in steps marked by ** are reported as errors.
ld searches in each location for libraries by file name, based upon whether the specified file name
is a simple name. (A simple name is an OSS pathname without any directory components.) If
the specified file name is not a simple name, ld tries to open the specified file.
If the specified filename is a simple name, ld tries to open the specified file; if it cannot, it
modifies the supplied value and tries to open a file with the modified name. (Simple names
specified in the Guardian file system, /G, are not modified; ld uses only the supplied value.) The
prefix lib and the following suffixes are added to the specified name to create the modified name:
.so To find a DLL, unless the -bstatic flag is in effect
.srl To find a shared runtime library (SRL), unless the -bstatic flag is in effect
.a To find an archive file, unless the -dllsonly flag is in effect
The OSS version of rld searches for DLLs and archive files in the following locations:
1. Locations specified by the current -rld_first_l flag
2. Public libraries (installed by the system operator)
3. Program location *
4. Locations specified by the current -rld_l flag
5. Default locations:
On OSS: /lib:/usr/lib:/usr/local/lib:/G/SYSTEM/ZDLL
On Guardian: $SYSTEM.ZDLL *
The value of the COMP_ROOT environment variable is added to the beginning of /lib,
/usr/lib, and /usr/local/lib. By default, the value of COMP_ROOT is null in the OSS
environment.
When the -limit_runtime_paths flag has been used for the loadfile, the following are omitted
from the search:
• The steps marked by an asterisk (*) in the previously described search order
• Paths indicated by the TACL DEFINEs _RLD_FIRST_LIB_PATH and
_RLD_LIB_PATH.
527188-003 Hewlett-Packard Company 5−45