Skip to content

Commit

Permalink
Merge pull request #2 from UniqMartin/fat-dylibs
Browse files Browse the repository at this point in the history
fix 'linked_dylibs' for fat files with single arch
  • Loading branch information
woodruffw committed Feb 2, 2016
2 parents 6699279 + d92db90 commit 25fece7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/macho/fat_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,8 @@ def dylib_id=(new_id)
# All shared libraries linked to the file's Mach-Os.
# @return [Array<String>] an array of all shared libraries
def linked_dylibs
dylibs = machos.map(&:linked_dylibs).flatten

# can machos inside fat binaries have different dylibs?
dylibs.uniq!
machos.flat_map(&:linked_dylibs).uniq
end

# Changes all dependent shared library install names from `old_name` to `new_name`.
Expand Down

0 comments on commit 25fece7

Please sign in to comment.