Merge pull request #11375 from carlocab/relocate-dylib-id

extend/os/mac/keg_relocate: fix post-bottling dylib ID relocation
This commit is contained in:
Carlo Cabrera 2021-05-12 22:15:31 +01:00 committed by GitHub
commit 526c06da0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,8 +22,8 @@ class Keg
mach_o_files.each do |file| mach_o_files.each do |file|
file.ensure_writable do file.ensure_writable do
if file.dylib? if file.dylib?
id = relocated_name_for(dylib_id_for(file), relocation) id = relocated_name_for(file.dylib_id, relocation)
change_dylib_id(id, file) if id change_dylib_id(id, file)
end end
each_install_name_for(file) do |old_name| each_install_name_for(file) do |old_name|