Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
User Commands (k - l) ld(1)
You cannot use this flag when you use the -blocalized, -bsemi_localized,or
-bsymbolic flag. The default action is the action for the -blocalized flag.
-blocalized Directs ld to use the following sequence as its linker searchList when resolving
the filenames specified for the -l and -lib flags:
1. Loadfile itself
2. Libraries on the libList
3. Breadth-first transitive closure of re-exported libList-specified DLLs
4. Implicit libraries
This is the default ld action.
A filename that is either a relative OSS pathname or a Guardian filename that is
not qualified is found using search path lists, as described in the Finding
Libraries subsection of this reference page under DESCRIPTION.
You cannot use this flag when you use the -bglobalized, -bsemi_localized,or
-bsymbolic flag.
-bstatic Directs ld to search for archive files when resolving the file names specified for
the -l and -lib flags.
If a file name is qualified, ld searches for an archive with that name.
If a filename is unqualified, in each search path, ld first searches for an archive
with the file name as specified in the -l or -lib flag). If ld cannot find an archive,
the file name is unqualified, and the search path is not in the Guardian file system
(/G), then ld prefixes lib and suffixes .a to the file 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 flag is specified.
The -bdllsonly, -bdynamic, and -bstatic flags are search control toggles. Multi-
ple flags can be specified in a single ld invocation; the behavior specified
remains in effect until another flag in the set is specified. Thus, you can search
for both DLLs and archive files for some -l and -lib flags and search for just
archive files 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 file names specified for the -l and -lib flags:
• At link time:
1. Loadfile itself
2. Libraries on the libList
3. Breadth-first transitive closure of DLLs on the libList
4. Implicit libraries
527188-007 Hewlett-Packard Company 5−35