Merge pull request #11392 from carlocab/duplicate-rpaths

extend/os/mac/keg_relocate: fix relocation of duplicate `RPATH`s
This commit is contained in:
Carlo Cabrera
2021-05-17 00:47:41 +01:00
committed by GitHub
@@ -94,6 +94,7 @@ class Keg
def each_linkage_for(file, linkage_type, &block)
links = file.method(linkage_type)
.call
.uniq
.reject { |fn| fn =~ /^@(loader_|executable_|r)path/ }
links.each(&block)
end