Search notes:

/etc/ld.so.conf

By default, the dynamic loader searches through /lib and /usr/lib for dynamic libraries that are needed by programs.
/etc/ld.so.conf can be used to configure the dynamic loader to search for other directories (such as /usr/local/lib or /opt/lib) as well.

Naming additional directories

/usr/local/lib
/opt/lib
…

Include statement

include /etc/ld.so.conf.d/*.conf

See also

/etc/ld.so.cache
shared libraries

Index