document pkg-config configuration #21129
Comments
Can you elaborate? |
pkg-config is not aware of all paths that brew uses so using pkg-config with (some) libs coming from brew just fail. Brew (sometime at least) install libs in "/usr/local/opt/" and their .pc files (aka pkg-config) have path "/usr/local/opt/$(libname)/lib/pkgconfig/*.pc" The small script provide all the paths to pkg-config (by setting the env variable) This are the libs in "/usr/local/opt/" (with pkgconfig directory inside) I found on my computer |
Some things are deliberately not linked into /usr/local/lib/pkgconfig, these are keg-only formula that conflict with things already installed on the system. Everything else is linked as one would expect. |
I see. It maybe requires more documentation then. |
How would linking keg-only libs into |
@mietek They may be picked up by stuff intending to pick up system versions instead. |
For the record I, too, found Just to make sure I wasn’t working with old versions, I uninstalled both of these packages just now and reinstalled them; (I manually fixed both of these on my install by relocating the errant folders in question to |
It's perfectly fine for there to be pkgconfig files in the |
I'm not sure the concept of There's also the How-to-build-software-outside-Homebrew-with-Homebrew-keg-only-dependencies document that talks about I'll re-open if anyone protests, but I don't know if there's much more on our side to do here. |
I had to put the following in my bashrc/bashprofile
The text was updated successfully, but these errors were encountered: