Skip to content

Commit

Permalink
Yeet.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Sep 3, 2024
1 parent 51b49ec commit 42d2a73
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 @@ -57,7 +57,7 @@ def patchelf(root_dir, prefix_path, binary, format='@executable_path')
self_referencing = true

# Obtain the relative path from the library
relative_path = Pathname.new(lib).relative_path_from(Pathname.new(File.join(prefix_path, binary)))
relative_path = Pathname.new(lib).relative_path_from(Pathname.new(File.dirname(File.join(prefix_path, binary))))
else
# Obtain the relative path from the executable
lib_relative_path = lib_path.delete_prefix(full_prefix_path)
Expand Down

0 comments on commit 42d2a73

Please sign in to comment.