ld Manual

ld Options
ld Manual529650.001
2-6
-bdllsonly
-bdllsonly
Directs ld to limit searches to libraries when resolving the file names specified for -l or
-lib.
If a file name is qualified, ld searches for a DLL with that name. If a file name is
unqualified, in each search path, ld first searches for a DLL with the file name as
specified in -l or -lib). If ld cannot find a DLL, the file name is unqualified, and the
search path is not in the Guardian file system (/G), then ld prefixes lib and suffixes
.so to the file name and searches again. If ld still cannot find the DLL, it searches the
path again with the same prefix but with .srl as the suffix. For more information on
search paths, see Searching for Archives and Libraries on page 1-19.
When a DLL cannot be found, ld issues an error message unless -allow_missing_libs
is specified.
-bdllsonly, -bdynamic, and -bstatic are search control toggles. Multiple flags can be
specified in a single ld invocation; the behavior specified remains in effect until
another flag in the set is specified. As a result, 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.
-bdynamic
Directs ld to search for libraries and archive files when resolving -l or -lib. This is the
default.
If a file name is qualified, ld searches for a library or archive with that name. If a file
name is unqualified, in each search path, ld first searches for a library or archive with
the file name as specified in -l or -lib. If ld cannot find a library or archive the file name
is unqualified, and the search path is not in the Guardian file system (/G), ld prefixes
lib and suffixes .so to the file name and searches again. If ld still cannot find the
library or archive, it searches the path again with the same prefix but with .srl as the
suffix. If ld still cannot find the library or archive, it searches the path again with the
same prefix but with .a as the suffix. For more information on search paths, see
Searching for Archives and Libraries on page 1-19.
When a library or archive cannot be found, ld issues an error message unless
-allow_missing_libs is specified.
-bdynamic, -bdllsonly, and -bstatic are search control toggles. Multiple flags can be
specified in a single ld invocation; the behavior specified remains in effect until
another flag in the set is specified. As a result, you can search for both libraries and
archive files for some -l and -lib flags and search for just archive files for others.
-bdllsonly
-bdynamic