IT lexicon › Programming › pkg-config

pkg-config

Programming På svenska → Updated: 2026-11-13

Utility that manages metadata about installed libraries — their versions, compiler flags, and linker options.

pkg-config is a small but essential tool that stores information about C/C++ libraries installed on a system: their versions, header locations, and which compiler and linker flags are needed to use them. Build tools like Make, Autotools, and CMake query pkg-config to correctly find and link dependencies. Without it, every project would need to hardcode paths to header files and libraries, making portability nearly impossible.

← Back to the lexicon