Linker and Libraries Guide

Environment Variables

The link-editors support a number of environment variables that begin with the characters LD_. Each environment variable can exist in its generic form, or can be specified with a _32 or _64 suffix. This suffix makes the environment variable specific, respectively, to 32-bit or 64-bit processes and 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 will use the generic, non-suffixed, variant. For a list of all supported environment variables refer to ld(1) and ld.so.1(1).