Linux动态库搜索顺序
来源:互联网 发布:淘宝小二介入规则 编辑:程序博客网 时间:2024/05/22 06:43
参考:http://my.oschina.net/shelllife/blog/115958
"man ld" 给出下列内容:
1. Any directories specified by -rpath-link options.2. Any directories specified by -rpath options. The difference between -rpath and -rpath-link is that directories specified by -rpath options are included in the executable and used at runtime, whereas the -rpath-link option is only effective at link time. Searching -rpath in this way is only supported by native linkers and cross linkers which have been configured with the --with-sysroot option.3. On an ELF system, for native linkers, if the -rpath and -rpath-link options were not used, search the contents of the environment variable "LD_RUN_PATH".4. On SunOS, if the -rpath option was not used, search any directories specified using -L options.5. For a native linker, the search the contents of the environment variable "LD_LIBRARY_PATH".6. For a native ELF linker, the directories in "DT_RUNPATH" or "DT_RPATH" of a shared library are searched for shared libraries needed by it. The "DT_RPATH" entries are ignored if "DT_RUNPATH" entries exist.7. The default directories, normally /lib and /usr/lib.8. For a native linker on an ELF system, if the file /etc/ld.so.conf exists, the list of directories found in that file.
这就是完整的搜索列表了。
0 0
- linux动态库搜索顺序
- Linux动态库搜索顺序
- windows与linux动态库搜索顺序
- Linux动态链接(5)动态库符号搜索顺序
- linux中动态链接库的搜索顺序
- linux中动态链接库的搜索顺序
- 动态链接库搜索顺序
- 动态库搜索先后顺序
- 动态链接库(DLL)搜索顺序
- linux环境程序在链接时和运行时搜索动态库的顺序
- 动态库的搜索路径搜索的先后顺序
- Linux动态库搜索路径
- Linux动态库搜索路径
- Linux动态库搜索路径
- Linux动态库搜索路径
- Linux动态库搜索路径
- Linux动态搜索库路径
- Linux动态库搜索路径
- Unix网络编程 学习笔记 1-4章
- Oj题——数字转换为星期几
- tx标签表达式的写法
- Build a web app fast: Python, HTML & JavaScript resources
- iOS开发 - Xib 九宫格应用管理
- Linux动态库搜索顺序
- 鼠标事件比较与鼠标位置
- Bootstrap简单HelloWorld入门教程
- @import与link的具体区别
- C语言强化(五)输出一串数中最小的 k 个
- C语言——各种数据类型
- 一些jar的作用
- 女程序媛的心声
- 标点结尾识别,正则表达式的正确写法