Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (k - l) ld(1)
You cannot use this ag when you use the -blocalized, -bsemi_localized,or
-bsymbolic ag. The default action is the action for the -blocalized ag.
-blocalized Directs ld to use the following sequence as its linker searchList when resolving
the lenames specied for the -l and -lib ags:
1. Loadle itself
2. Libraries on the libList
3. Breadth-rst transitive closure of re-exported libList-specied DLLs
4. Implicit libraries
This is the default ld action.
A lename that is either a relative OSS pathname or a Guardian lename that is
not qualied is found using search path lists, as described in the Finding
Libraries subsection of this reference page under DESCRIPTION.
You cannot use this ag when you use the -bglobalized, -bsemi_localized,or
-bsymbolic ag.
-bstatic Directs ld to search for archive les when resolving the le names specied for
the -l and -lib ags.
If a le name is qualied, ld searches for an archive with that name.
If a lename is unqualied, in each search path, ld rst searches for an archive
with the le name as specied in the -l or -lib ag). If ld cannot nd an archive,
the le name is unqualied, and the search path is not in the Guardian le system
(/G), then ld prexes lib and sufxes .a to the le name and searches again. For
more information on search paths, see the Finding Libraries subsection of this
reference page under DESCRIPTION.
When an archive cannot be found, ld issues an error message unless the
-allow_missing_libs ag is specied.
The -bdllsonly, -bdynamic, and -bstatic ags are search control toggles. Multi-
ple ags can be specied in a single ld invocation; the behavior specied
remains in effect until another ag in the set is specied. Thus, you can search
for both DLLs and archive les for some -l and -lib ags and search for just
archive les for others. The default library search control is -bdynamic.
-bsymbolic | -bsemi_globalized
Directs ld to use the following sequence as its linker searchList when resolving
the le names specied for the -l and -lib ags:
At link time:
1. Loadle itself
2. Libraries on the libList
3. Breadth-rst transitive closure of DLLs on the libList
4. Implicit libraries
527188-007 Hewlett-Packard Company 535