diff options
| author | Tim D. Smith | 2014-09-28 15:25:41 -0700 |
|---|---|---|
| committer | Tim D. Smith | 2014-09-29 20:27:13 -0700 |
| commit | ef6d160ec95cfd2517f92ed40b7e15427f91d8dd (patch) | |
| tree | 02eee8c481e6b02b33a879b568de504260c5f0ee /Library/Homebrew/keg_fix_install_names.rb | |
| parent | aa2404c5d36b34fec7f56c9ee1fb0a5ee9c031ca (diff) | |
| download | homebrew-ef6d160ec95cfd2517f92ed40b7e15427f91d8dd.tar.bz2 | |
Walk entire keg to find object files to relocate
Closes #32772.
Diffstat (limited to 'Library/Homebrew/keg_fix_install_names.rb')
| -rw-r--r-- | Library/Homebrew/keg_fix_install_names.rb | 12 |
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 |
