Is there an ld-linux.so equivalent for mac?

Posted by Matt on Super User See other posts from Super User or by Matt
Published on 2013-11-05T13:37:13Z Indexed on 2013/11/06 4:00 UTC
Read the original article Hit count: 171

Filed under:
|
|

I'm using the following command on Linux to change the default library path temporarily for the program being run:

/lib64/ld-linux-x86-64.so.2 --library-path /home/me/libs./myProgram

This runs myProgram and makes it check /home/me/libs first for its dynamically linked libraries.

So I want to do this on Mac too.. is there an equivalent? I'd like to avoid setting environment variables if possible.

© Super User or respective owner

Related posts about linux

Related posts about osx