From 54d0043771c0f577554f19a81fc4e251531f5ff4 Mon Sep 17 00:00:00 2001 From: "Tim D. Smith" Date: Sun, 28 Sep 2014 15:25:41 -0700 Subject: [PATCH] Walk entire keg to find object files to relocate Closes Homebrew/homebrew#32772. --- Library/Homebrew/keg_fix_install_names.rb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb index 9706f1b064..6ab8b15f66 100644 --- a/Library/Homebrew/keg_fix_install_names.rb +++ b/Library/Homebrew/keg_fix_install_names.rb @@ -154,15 +154,9 @@ 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| - 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 + 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 mach_o_files