mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 13:06:38 +00:00
chore(shared-libraries): add @executable_path/lib to @rpath for good measure
This commit is contained in:
@@ -628,6 +628,11 @@ class LibEmbedder < AbstractEmbedder
|
||||
Pathname.new(File.dirname(exe))
|
||||
).to_s
|
||||
|
||||
while_writable(exe) do
|
||||
system('install_name_tool', '-add_rpath',
|
||||
File.join('@executable_path', rel_path), exe)
|
||||
end
|
||||
|
||||
`otool -L "#{exe}"`.split("\n")[1..-1].each do |line|
|
||||
match = line.match(%r{^\s+(.+/(lib[^/ ]+))\s})
|
||||
next unless match && match[1].start_with?(lib_source)
|
||||
|
||||
Reference in New Issue
Block a user