I'm not sure LD_LIBRARY_PATH
is really what you want here, but if it is…
The equivalent for Darwin dyld
(what OS X uses instead of the GNU ldd
that Linux uses) is DYLD_LIBRARY_PATH
.
Note that on OS X, you can link against frameworks as well as plain dynamic libraries. If you've done this, you will also probably need to set an additional variable, such as DYLD_FRAMEWORK_PATH
.