Linux:链接共享库时如何使用.pc文件?

zer*_*lus 7 c linux

据我所知,*.pc文件存储有关共享库的元数据.链接到共享库时,链接器是否自动使用这些文件?如果是这样,它在哪里搜索这些文件?

Yan*_*min 8

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.