aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/brewkit.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb
index f41a16f41..41422ed9e 100644
--- a/Library/Homebrew/brewkit.rb
+++ b/Library/Homebrew/brewkit.rb
@@ -179,6 +179,8 @@ paths=ENV['PATH'].split(':').reject do |p|
end
ENV['PATH']=paths*':'
+# Clear CDPATH to avoid make issues that depend on changing directories
+ENV.delete('CDPATH')
def inreplace(path, before, after)
before=Regexp.escape before.to_s