LD_LIBRARY_PATH in Mac OS X
I keep forgetting, so I thought I would drop a quick blog posting to remind me forever. For those of you who are moving from Linux to Mac OS, you might be interested:
The equivalent of $LD_LIBRARY_PATH in Linux, is (drum roll please): DYLD_LIBRARY_PATH.
$ export DYLD_LIBRARY_PATH=`pwd`/mydebugpath
And now your application will resolve the shared objects (.dynlib) files at runtime.
For all the glory details you can also man dyld:
$man dyld
Labels: C++, Mac OS X, Programming