aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorTim D. Smith2014-09-28 15:25:41 -0700
committerTim D. Smith2014-09-29 20:27:13 -0700
commitef6d160ec95cfd2517f92ed40b7e15427f91d8dd (patch)
tree02eee8c481e6b02b33a879b568de504260c5f0ee /Library/Homebrew
parentaa2404c5d36b34fec7f56c9ee1fb0a5ee9c031ca (diff)
downloadhomebrew-ef6d160ec95cfd2517f92ed40b7e15427f91d8dd.tar.bz2
Walk entire keg to find object files to relocate
Closes #32772.
Diffstat (limited to 'Library/Homebrew')
-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