The primary use of pkg-config is to provide the necessary details for compiling and linking a program to a library. This metadata is stored in pkg-config files.
What is pkg-config used for?
PkgConfig(), a wrapper of the pkg-config tool that allows to extract flags, library paths, etc.
What is pkg-config Mac?
pkg-config is a helper tool used when compiling applications and libraries. It helps you insert the correct compiler options on the command line so an application can use gcc -o test test. ... pkg-config works on multiple platforms: Linux and other UNIX-like operating systems, Mac OS X and Windows.