poppler: also don't use @rpath for bin/*
Closes #20042. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
c32dc6d090
commit
21dc4a993f
1 changed files with 3 additions and 2 deletions
|
@ -73,8 +73,9 @@ class Poppler < Formula
|
|||
end
|
||||
|
||||
libpoppler = (lib/"libpoppler.dylib").readlink
|
||||
["libpoppler-cpp.dylib", "libpoppler-glib.dylib"].each do |dylib|
|
||||
macho = MachO.open("#{lib}/#{dylib}")
|
||||
["#{lib}/libpoppler-cpp.dylib", "#{lib}/libpoppler-glib.dylib",
|
||||
*Dir["#{bin}/*"]].each do |f|
|
||||
macho = MachO.open(f)
|
||||
macho.change_dylib("@rpath/#{libpoppler}", "#{lib}/#{libpoppler}")
|
||||
macho.write!
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue