diff --git a/Library/Homebrew/extend/os/linux/keg_relocate.rb b/Library/Homebrew/extend/os/linux/keg_relocate.rb index 1a4fa8845b..4fafbbd6fa 100644 --- a/Library/Homebrew/extend/os/linux/keg_relocate.rb +++ b/Library/Homebrew/extend/os/linux/keg_relocate.rb @@ -6,7 +6,7 @@ require "compilers" class Keg def relocate_dynamic_linkage(relocation) # Patching the dynamic linker of glibc breaks it. - return if name == "glibc" + return if name.match? Version.formula_optionally_versioned_regex(:glibc) # Patching patchelf fails with "Text file busy" or SIGBUS. return if name == "patchelf"