-
Notifications
You must be signed in to change notification settings - Fork 120
Conversation
gerard
commented
Jul 14, 2012
So, I think the right fix would be to add /usr/local/lib/pkg_config after the configured PKG_CONFIG_PATH only on Darwin. Since fuse.pc is there, everything should work after that. Do you agree? It's still guessing, but a way better shot at it. Could you test it and send a pull request?
GwynethLlewelyn
commented
Jun 24, 2024
I think the right fix would be to add
/usr/local/lib/pkg_configafter the configuredPKG_CONFIG_PATHonly on Darwin.
I certainly cannot speak for any other platform (besides the Mac, I only have Debian/Ubuntu Linux to play around with, and these already mount ext4 filesystems by default), but I believe that using pkg-config (note the hyphen and not the underscore) is pretty much the standard way of retrieving compilation flags for all Unix-based operating systems these days.
It's true that macOS/Darwin lacks them by default, but that's one of the reasons for using something like Homebrew 😀 which will happily populate the filesystem with all those correctly-configured .pc files for pkg-config... and keep them up to date, too!
Thankfully this is an easy fix, since the Makefile just needs to be told to grab headers from the appropriate place and be told to link to fuse.