linux/keg_relocate: patchelf dependency is conditional.

This is only needed if we're not using `patchelf.rb`.

Partial fix for https://github.com/Homebrew/brew/issues/10784
This commit is contained in:
Mike McQuaid 2021-03-05 11:36:23 +00:00
parent 1d0abd5401
commit 49642e4267
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -80,7 +80,11 @@ class Keg
end
def self.relocation_formulae
@relocation_formulae ||= if HOMEBREW_PATCHELF_RB_WRITE
[]
else
["patchelf"]
end.freeze
end
def self.bottle_dependencies