aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-10-07 21:25:20 -0500
committerJack Nagel2013-10-07 21:32:18 -0500
commitfe31e8ddb4803c3e549af936b7f7b30b754660db (patch)
tree6cc6b1ba08833e8fb2733524871596263f8dd5e9
parent022f1225e6ac9c7ea2b2d7b88b305906fddad2ef (diff)
downloadbrew-fe31e8ddb4803c3e549af936b7f7b30b754660db.tar.bz2
Use MacOS.locate to find otool
Fixes Homebrew/homebrew#23111.
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index d54e7d72f..0edd1bd06 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -396,7 +396,7 @@ class Pathname
# Returns an empty array both for software that links against no libraries,
# and for non-mach objects.
def dynamically_linked_libraries
- `otool -L "#{expand_path}"`.chomp.split("\n")[1..-1].map do |line|
+ `#{MacOS.locate("otool")} -L "#{expand_path}"`.chomp.split("\n")[1..-1].map do |line|
line[/\t(.+) \([^(]+\)/, 1]
end
end