Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux: how are .pc files used when linking against a shared library?

Tags:

c

linux

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?

like image 866
zer0stimulus Avatar asked Jul 29 '10 16:07

zer0stimulus


1 Answers

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.

like image 133
Yann Ramin Avatar answered Oct 09 '22 07:10

Yann Ramin