diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb index d436225f78..b1a72f1ef7 100644 --- a/Library/Homebrew/keg_relocate.rb +++ b/Library/Homebrew/keg_relocate.rb @@ -157,12 +157,8 @@ class Keg end def mach_o_files - hardlinks = Set.new mach_o_files = [] path.find do |pn| - # if we've already processed a file, ignore its hardlinks (which have the same dev ID and inode) - # this prevents relocations from being performed on a binary more than once - next unless hardlinks.add? [pn.stat.dev, pn.stat.ino] next if pn.symlink? || pn.directory? mach_o_files << pn if pn.dylib? || pn.mach_o_bundle? || pn.mach_o_executable? end