nld Manual

nld Options
nld Manual528272-001
3-7
-l or -lib
-l or -lib
Specifies an SRL or archive file to use to resolve external references from the loadfile
being linked.
filename
specifies an SRL or archive file, either by name or (in the Guardian environment)
by map DEFINE.
-l must be lowercase. The space after the flag is optional.
A simple name is a Guardian file identifier or a OSS pathname without directory
components.
If filename is not a simple name, nld searches the specified location.
If filename is a simple name, the OSS workstation versions of nld adds the string
lib to the beginning of the name. These versions also add either .a or .srl to the
end of the name, depending on whether dynamic or static linking is being performed.
Files with the suffix .a are archive files, and files with the suffix .srl are SRLs. Simple
file names in the Guardian file system, /G, are not modified. See Dynamic and Static
Linking on page 2-27 for more details.
nld searches for files specified with simple names in the options -l or -lib in
locations specified in those options, in the order specified to nld, before searching any
of the standard library locations. Each version of nld searches a particular set of
standard library locations. See Dynamic and Static Linking on page 2-27 for details.
If you specify the -nostdlib on page 3-9, nld does not search standard library
locations.
-l[ib][ ]filename