-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
gobject-introspection-1.0.pc causes failures due to libffi dependency #9911
Comments
You can add the libffi pkgconfig directory to your PKG_CONFIG_PATH, it should be (In Homebrew, this is done automatically when something in a formula's dependency tree is keg-only.) |
Or more robustly $(brew --prefix libffi)/lib/pkgconfig |
ah cool that's a lot easier than I thought it'd be :) Any suggestions for how to detect that I'm building against brew installed software? |
I think I've come to a decent solution. Use "which pkg-config" to find it's path, and then see if it's a symlink that's in /usr/local//Cellar. and if so, then add the libffi prefix to PKG_CONFIG_PATH. Does this sound reasonable? |
Makes sense. |
Cool, wasn't sure if an environment variable or something got set. If so I'd prefer to use that, but this will work. Thanks again! |
I'm trying to compile some of my own software that depends gobject-introspection (which was just added), however, it depends on libffi, which is a key-only package, which means no libffi.pc gets linked in /usr/local/lib/pkg-config. Looking for suggestions/fixes.
The text was updated successfully, but these errors were encountered: