问个动态链接(ldconfig)的问题

bayougeng bayougeng 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
#/etc/ld.so.conf文件的内容:
include ld.so.conf.d/*.conf

说明配置文件包括/etc/ld.so.conf.d/下的所有.conf文件。
所以我接着做了以下操作:
[nagios@NetMonitor ~]$ cat /etc/ld.so.conf.d/*.conf
# This directive teaches ldconfig to search in nosegneg subdirectories
# and cache the DSOs there with extra bit 0 set in their hwcap match
# fields. In Xen guest kernels, the vDSO tells the dynamic linker to
# search in nosegneg subdirectories and to match this extra hwcap bit
# in the ld.so.cache file.
hwcap 0 nosegneg
/usr/lib/qt-3.3/lib

配置文件只指定了一个目录,我查看了这个目录中的文件:
[root@NetMonitor ~]# ls /usr/lib/qt-3.3/lib/
libqt-mt.so.3 libqt-mt.so.3.3 libqt-mt.so.3.3.6 libqui.so.1 libqui.so.1.0 libqui.so.1.0.0
一共只有6个文件。

但是执行下面的操作:
[root@NetMonitor ~]# ldconfig -p | wc -l
630

也就是说,系统一共加载了629个动态链接对象(第一行不算,是一个title)。
但是配置文件只指定了6个动态链接对象。
我想知道,其他的这些文件,是根据什么样的规则加载的?就是说,系统怎么知道一定要加载这些文件?
难道还有其他的地方可以配置更高优先级的加载么?
...全文
评论 20
收藏 已收藏
分享
返回顶部
bayougeng
Linux/Unix社区 23,224 成员 74,535 内容