Skip to content

Commit

Permalink
Yeet.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Sep 2, 2024
1 parent 23b184a commit 6fa182c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brew-pkg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def patchelf(root_dir, prefix_path, binary)
system("ls", "-la", lib_path)

# Obtain the relative path from the executable
relative_path = Pathname.new(lib_path).relative_path_from(Pathname.new(binary_path))
relative_path = Pathname.new(lib.delete_prefix(prefix_path)).relative_path_from(Pathname.new(binary))
new_lib = File.join('@executable_path', relative_path)

# Patch the library path relative to the binary path
Expand Down

0 comments on commit 6fa182c

Please sign in to comment.