diff --git a/lib/pkg-config.rb b/lib/pkg-config.rb index cdc7512..185500b 100644 --- a/lib/pkg-config.rb +++ b/lib/pkg-config.rb @@ -343,6 +343,11 @@ def compute_default_path homebrew_repository_candidates << Pathname(homebrew_repository.strip) end + homebrew_prefix = run_command("brew", "--prefix") + if homebrew_prefix + homebrew_repository_candidates << + Pathname(homebrew_prefix.strip) + end end homebrew_repository_candidates.uniq.each do |candidate| mac_pkgconfig_base_path =