搜索动态库的先后顺序
1 编译目标代码时指定的动态库搜索路径 -Wl,-rpath=/dir1:/dir2…
2 系统变量 LD_LIBRARY_PATH
3 /etc/ld.so.cache
4 default path /lib, and then /usr/lib.
搜索动态库的先后顺序
1 编译目标代码时指定的动态库搜索路径 -Wl,-rpath=/dir1:/dir2…
2 系统变量 LD_LIBRARY_PATH
3 /etc/ld.so.cache
4 default path /lib, and then /usr/lib.