pkg-config: controlling the libraries we have installed
Translation of the original in Catalan. Read it in: CatalàCastellano
pkg-config is a tool that helps us when we have to compile applications and libraries. It lets us discover the options that have to be added to the compiler.
Some quick examples of things we can do:
# descobrir llista de llibreries que tenim instal·lades:
pkg-config --list-all
# cflags per una lliberia concreta
pkg-config nom_llibreria --cflags
# llibreries a incloure al compilador per una llibreria concreta
pkg-config nom_llibreria --libs