linux 搜索动态库的先后顺序

搜索动态库的先后顺序

1 编译目标代码时指定的动态库搜索路径 -Wl,-rpath=/dir1:/dir2…

2 系统变量 LD_LIBRARY_PATH

3 /etc/ld.so.cache

4  default path /lib, and then /usr/lib.

猜你喜欢

转载自blog.csdn.net/whereisdog/article/details/82771474