aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2014-09-28 15:25:41 -0700
committerTim D. Smith2014-09-29 20:27:13 -0700
commit54d0043771c0f577554f19a81fc4e251531f5ff4 (patch)
treeadc7f81eba54e28d9fe88e9d0790b076f9eb5324 /Library
parent225bd3bf50a05cc53dc5f355c0e4236acfd5a957 (diff)
downloadbrew-54d0043771c0f577554f19a81fc4e251531f5ff4.tar.bz2
Walk entire keg to find object files to relocate
Closes Homebrew/homebrew#32772.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg_fix_install_names.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb
index 9706f1b06..6ab8b15f6 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