Skip to content

Commit

Permalink
Merge pull request #7996 from rmNULL/gemfile-patchelf-version-update
Browse files Browse the repository at this point in the history
Replace instance variable access with call to .elf.
  • Loading branch information
jonchang committed Jul 15, 2020
2 parents 1663304 + 0f9bdee commit 20e3d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/os/linux/elf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def dynamic_elf?
return @dynamic_elf if defined? @dynamic_elf

@dynamic_elf = if HOMEBREW_PATCHELF_RB
patchelf_patcher.instance_variable_get(:@elf).segment_by_type(:DYNAMIC).present?
patchelf_patcher.elf.segment_by_type(:DYNAMIC).present?
elsif which "readelf"
Utils.popen_read("readelf", "-l", to_path).include?(" DYNAMIC ")
elsif which "file"
Expand Down

0 comments on commit 20e3d74

Please sign in to comment.