TOC   Previous   Next

LD_LIBRARY_PATH

We need to give the dynamic linker information on how to find our shared library at run-time

One solution: LD_LIBRARY_PATH.

$ LD_LIBRARY_PATH=. ./prog
Called mod1-x1
Called mod2-x2

Note: production applications should not use LD_LIBRARY_PATH.


(C) 2006, Michael Kerrisk