doctor: check for all DYLD env vars
This commit is contained in:
parent
3d0318c913
commit
d9f64a1574
@ -635,31 +635,25 @@ def check_for_config_scripts
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_for_DYLD_LIBRARY_PATH
|
def check_DYLD_vars
|
||||||
if ENV['DYLD_LIBRARY_PATH']
|
found = ENV.keys.grep(/^DYLD_/)
|
||||||
<<-EOS.undent
|
unless found.empty?
|
||||||
Setting DYLD_LIBRARY_PATH can break dynamic linking.
|
s = <<-EOS.undent
|
||||||
You should probably unset it.
|
Setting DYLD_* vars can break dynamic linking.
|
||||||
|
Set variables:
|
||||||
EOS
|
EOS
|
||||||
end
|
found.each do |e|
|
||||||
end
|
s << " #{e}\n"
|
||||||
|
end
|
||||||
|
if found.include? 'DYLD_INSERT_LIBRARIES'
|
||||||
|
s += <<-EOS.undent
|
||||||
|
|
||||||
def check_for_DYLD_FALLBACK_LIBRARY_PATH
|
|
||||||
if ENV['DYLD_FALLBACK_LIBRARY_PATH']
|
|
||||||
<<-EOS.undent
|
|
||||||
Setting DYLD_FALLBACK_LIBRARY_PATH can break dynamic linking.
|
|
||||||
You should probably unset it.
|
|
||||||
EOS
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def check_for_DYLD_INSERT_LIBRARIES
|
|
||||||
if ENV['DYLD_INSERT_LIBRARIES']
|
|
||||||
<<-EOS.undent
|
|
||||||
Setting DYLD_INSERT_LIBRARIES can cause Go builds to fail.
|
Setting DYLD_INSERT_LIBRARIES can cause Go builds to fail.
|
||||||
Having this set is common if you use this software:
|
Having this set is common if you use this software:
|
||||||
http://asepsis.binaryage.com/
|
http://asepsis.binaryage.com/
|
||||||
EOS
|
EOS
|
||||||
|
end
|
||||||
|
s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user