Trying to compile packages, sometimes I build a package, and the next package I try to compile is unable to see the newly built package. The problem lies with how Fedora is configured with pkg-config, which by default does not find libraries under /usr/local/lib.
Adding a file like local.conf to /etc/ld.so.conf.d containing:
Solves the problem!
Another solution is to set the PKG_CONFIG_PATH environment variable: