From a634dc6a2c2e0a4027f2fa4e95a111f88e00c1a7 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 25 Jun 2010 19:22:54 -0700 Subject: [PATCH] Add brew doctor check for DYLD vars. --- Library/Homebrew/brew_doctor.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb index 7aa6c616d5..cb3d340a85 100644 --- a/Library/Homebrew/brew_doctor.rb +++ b/Library/Homebrew/brew_doctor.rb @@ -259,6 +259,16 @@ def check_for_config_scripts end end +def check_for_dyld_vars + if ENV['DYLD_LIBRARY_PATH'] + puts <<-EOS.undent + Setting DYLD_LIBARY_PATH can break dynamic linking. + You should probably unset it. + + EOS + end +end + def brew_doctor read, write = IO.pipe @@ -278,6 +288,7 @@ def brew_doctor check_pkg_config_paths check_for_gettext check_for_config_scripts + check_for_dyld_vars exit! 0 else