From my knowledge, *.pc files store metadata about shared libraries. Does the linker automatically use these files when linking against a shared library? If so, where does it search for these files?
据我所知,* .pc文件存储有关共享库的元数据。链接到共享库时链接器是否自动使用这些文件?如果是这样,它在哪里搜索这些文件?
1 个解决方案
#1
7
No, the linker does not utilize .pc
files. Those files are for pkg-config
, which can in turn be used to generate commands to link.
不,链接器不使用.pc文件。这些文件用于pkg-config,后者又可用于生成链接命令。
#1
7
No, the linker does not utilize .pc
files. Those files are for pkg-config
, which can in turn be used to generate commands to link.
不,链接器不使用.pc文件。这些文件用于pkg-config,后者又可用于生成链接命令。