Linker and Libraries Guide

Environment Variables

The link-editors support a number of environment variables that begin with the characters LD_, for example LD_LIBRARY_PATH. Each environment variable can exist in its generic form, or can be specified with a _32 or _64 suffix, for example LD_LIBRARY_PATH_64. This suffix makes the environment variable specific, respectively, to 32-bit or 64–bit processes. This suffix also overrides any generic, non-suffixed, version of the environment variable that may be in effect.

Throughout this document, any reference to link-editor environment variables uses the generic, non-suffixed, variant. For a list of all supported environment variables refer to the ld(1) and ld.so.1(1) man pages.