aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-06-25 19:22:54 -0700
committerAdam Vandenberg2010-06-25 19:22:54 -0700
commit355aa2522d8f3d989b5a35ff807cb99e975f8049 (patch)
tree793a3ff900e1018790a65bb832f23ee254b5446c
parent35eed61ca54c6dae67e7f98c38b715c74da73bc8 (diff)
downloadhomebrew-355aa2522d8f3d989b5a35ff807cb99e975f8049.tar.bz2
Add brew doctor check for DYLD vars.
-rw-r--r--Library/Homebrew/brew_doctor.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb
index 7aa6c616d..cb3d340a8 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