> It is either in the LD_LIBRARY_PATH or it isn't?
at minimum you have RPATH, RUNPATH, LD_LIBRARY_PATH.
this tool is based on ldd and thus also (presumably) resolves DYLD_LIBRARY_PATH, DYLD_FALLBACK_FRAMEWORK_PATH, DYLD_FALLBACK_LIBRARY_PATH, @executable_path, @loader_path and @rpath.
at minimum you have RPATH, RUNPATH, LD_LIBRARY_PATH.
this tool is based on ldd and thus also (presumably) resolves DYLD_LIBRARY_PATH, DYLD_FALLBACK_FRAMEWORK_PATH, DYLD_FALLBACK_LIBRARY_PATH, @executable_path, @loader_path and @rpath.