Skip to content
Snippets Groups Projects
Commit 54d00437 authored by Tim D. Smith's avatar Tim D. Smith
Browse files

Walk entire keg to find object files to relocate

Closes Homebrew/homebrew#32772.
parent 225bd3bf
Branches
Tags
No related merge requests found
......@@ -154,16 +154,10 @@ class Keg
def mach_o_files
mach_o_files = []
dirs = %w{bin sbin lib Frameworks}
dirs.map! { |dir| path.join(dir) }
dirs.reject! { |dir| not dir.directory? }
dirs.each do |dir|
dir.find do |pn|
path.find do |pn|
next if pn.symlink? or pn.directory?
mach_o_files << pn if pn.dylib? or pn.mach_o_bundle? or pn.mach_o_executable?
end
end
mach_o_files
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment