parent
022f1225e6
commit
fe31e8ddb4
@ -396,7 +396,7 @@ class Pathname
|
|||||||
# Returns an empty array both for software that links against no libraries,
|
# Returns an empty array both for software that links against no libraries,
|
||||||
# and for non-mach objects.
|
# and for non-mach objects.
|
||||||
def dynamically_linked_libraries
|
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]
|
line[/\t(.+) \([^(]+\)/, 1]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user