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
commit 1b1990d05d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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