Building from source without homebrew or any other package manager.
Download the latest version of the [https://pkg-config.freedesktop.org/releases/?C=M;O=A](pkg-config source).
LDFLAGS="-framework CoreFoundation -framework Carbon" ./configure --with-internal-glib
make
sudo make install
If you are not familiar with Make (and I am not), it is not clear whether the advice given above about setting
CFLAGSon a single line means that one should run these two different lines one after the other:or run a single line like this:
When I tried running the two lines one after another, the Makefile had a line
LDFLAGS =which suggests that the second command overwrote the version where the LDFLAGS were set.
When I ran the single line command, the same line in Makefile was
LDFLAGS = -framework CoreFoundation -framework CarbonAll other lines were the same. So it looks like the right approach is to set
LDFLAGS,CFLAGSandCXXFLAGSon a single line.BTW, after I created the Makefile that did not set
LDFLAGS, themakeandsudo make installcommands ran without generating errors. The version of pkg-config created this way may work for some purposes, but if you want a version that has theLDFLAGSset to-framework CoreFoundation -framework Carbon, you probably need to run a single line that sets all the flags and then run the other two commands.