Yet another post about dynamic lookup of shared libraries
This post is a quick reminder to self regarding specifics of RPATH,
RUNPATH, LD_LIBRARY_PATH, LD_RUN_PATH and the lookup order.
Refresher (a very short one)
RPATH, RUNPATH - are entries in the ELF header, baked into the binary allowing
the dynamic loader to lookup its shared dependencies.
RPATH/RUNPATH can be specified directly, using a linker option (-rpath):
g++ -Wl,-rpath=path/for/rpath
If missing in the command line, RPATH can be set using LD_RUN_PATH variable.
