Skip to content

Instantly share code, notes, and snippets.

@jl
Created February 20, 2016 05:40
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jl/9e5ebbc9ccf44f3c804e to your computer and use it in GitHub Desktop.
Save jl/9e5ebbc9ccf44f3c804e to your computer and use it in GitHub Desktop.
Installing pkg-config from source on OS X
@givingwu
Copy link

givingwu commented Aug 2, 2019

First, thanks for your share.

And i am confusing about the first line of the code LDFLAGS="-framework CoreFoundation -framework Carbon" ./configure --with-internal-glib,

what's that means LDFLAGS="-framework CoreFoundation -framework Carbon"?

@meschbach
Copy link

OSX & iOS uses a mechanism for managing development resources such as a libraries called Frameworks. These are generally frameworks in the Software Engineering sense however might also just be libraries. The flag informs the tool chain to build against these libraries.

See Apple's documentation about it for more details.

@scrutinizer11
Copy link

scrutinizer11 commented Jun 18, 2022

Thank you very much. To compile another binary pkg-config was a requirement although I'll never use it. You're the first one to explain how to compile the damn thing on macOS in plain human language. Additionally, the official GitLab link given on freedesktop.org to download "the source code" landed me with a package without the configure exec but with vastly inarticulate instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment