Linker and Libraries Guide

Overview

The runtime linker has some flexibility to discover the pathnames of required dependencies. By default the runtime linker only knows to search in /usr/lib. This directory is normally augmented with recorded runpaths. These paths are recorded in an image at the time it was built, and commonly point to the standard installed location of any dependencies. This section will outline how runpaths can be augmented with the $ORIGIN token so that an application does not have to know its final install location when it is built at link-edit time.