Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d70a406

Browse files
committed
caveats: fix PKG_CONFIG_PATH nudge under env filtering
1 parent 837ea74 commit d70a406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/Homebrew/caveats.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def keg_only_text
6464
s << "\nFor compilers to find this software you may need to set:\n"
6565
s << " LDFLAGS: -L#{f.opt_lib}\n" if f.lib.directory?
6666
s << " CPPFLAGS: -I#{f.opt_include}\n" if f.include.directory?
67-
if which("pkg-config") &&
67+
if which("pkg-config", ENV["HOMEBREW_PATH"]) &&
6868
((f.lib/"pkgconfig").directory? || (f.share/"pkgconfig").directory?)
6969
s << "For pkg-config to find this software you may need to set:\n"
7070
s << " PKG_CONFIG_PATH: #{f.opt_lib}/pkgconfig\n" if (f.lib/"pkgconfig").directory?

0 commit comments

Comments
 (0)