aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2017-12-11 06:26:56 +0000
committerDominyk Tiller2017-12-11 06:26:56 +0000
commitd70a406fe7a8820634adf217c9962d613ffe4cc0 (patch)
tree0ab7e647517466d90a984e5caa1671e9f4339f21 /Library
parent837ea74f448092d822a42ff137642c0aaf076650 (diff)
downloadbrew-d70a406fe7a8820634adf217c9962d613ffe4cc0.tar.bz2
caveats: fix PKG_CONFIG_PATH nudge under env filtering
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/caveats.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb
index 49a517bd4..98321f1a1 100644
--- a/Library/Homebrew/caveats.rb
+++ b/Library/Homebrew/caveats.rb
@@ -64,7 +64,7 @@ class Caveats
s << "\nFor compilers to find this software you may need to set:\n"
s << " LDFLAGS: -L#{f.opt_lib}\n" if f.lib.directory?
s << " CPPFLAGS: -I#{f.opt_include}\n" if f.include.directory?
- if which("pkg-config") &&
+ if which("pkg-config", ENV["HOMEBREW_PATH"]) &&
((f.lib/"pkgconfig").directory? || (f.share/"pkgconfig").directory?)
s << "For pkg-config to find this software you may need to set:\n"
s << " PKG_CONFIG_PATH: #{f.opt_lib}/pkgconfig\n" if (f.lib/"pkgconfig").directory?