IT lexicon › Programming › RUNPATH

RUNPATH

Programming På svenska → Updated: 2026-11-14

A modern version of RPATH that allows the runtime linker to override paths with environment variables.

RUNPATH is almost identical to RPATH — both embed search paths for dynamic libraries — but RUNPATH respects LD_LIBRARY_PATH and other linker directives, while RPATH ignores environment variables entirely. RUNPATH is preferable on modern Unix systems because it makes the system more flexible: users can temporarily point to different libraries for debugging without modifying the binary. Most modern linkers now default to RUNPATH.

← Back to the lexicon