To my knowledge, * .pc files store metadata about shared libraries. Is the linker automatically using these files when linking to a shared library? If so, where is he looking for these files?
No, the linker does not use .pc files. These files are intended for pkg-config , which in turn can be used to create commands for reference.
.pc
pkg-config