The following environment variables are used by the runtime linker:
LD_LIBRARY_PATH specifies a colon-separated list of directories that are to be searched ahead of the default directories defined previously. The colon-separated list is used to enhance the search path that the runtime linker uses to locate dynamic and shared libraries.
LD_PRELOAD provides a dynamic object name that is linked after the program is loaded but before any other dynamic objects that the program references.
LD_DEBUG is a column-separated list of tokens
for debugging the runtime linking of an application. Each token is associated
with a set of traces that are displayed during runtime linking. The supported
tokens are: file-ops
, reloc
, symbol-resolution
, malloc
, segment-alloc
, dependency
, misc
, linking
, dynamic-map-op
, group
, and error
.
Wildcard substitutions can also be used, for example, s*
matches both symbol-resolution
and segment-alloc
. Using just the wildcard (*
) matches
all traces.