当前位置: 动力学知识库 > 问答 > 编程问答 >

linux - How do I know how ldd resolved the dependency

问题描述:

For a dependency identified by ldd, how do I know whether it used the binary's RPATH or the environment's LD_LIBRARY_PATH ?

网友答案:

how do I know whether it used the binary's RPATH or the environment's LD_LIBRARY_PATH ?

Assuming Linux, run like so:

env LD_DEBUG=files,libs /path/to/executable

The output will tell you all you want to know: what the loader search path is when looking for various libraries, and why.

分享给朋友:
您可能感兴趣的文章:
随机阅读: