Skip to content

Commit

Permalink
Fix breaking other dylib otool paths sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Mar 20, 2023
1 parent 70b0a3d commit b0168da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/brewkit/fix-machos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def fix_install_names
def fix_tea_prefix s
s = Pathname.new(s).relative_path_from(Pathname.new($tea_prefix))
s = s.sub(%r{/v(\d+)\.(\d+\.)+\d+[a-z]?/}, '/v\1/')
s = s.sub(%r{(\.\d+)+\.dylib$}, '.dylib')
s = s.sub(%r{([-\.]\d+(\.\d)*)\.dylib$}, '.dylib') #FIXME we need to figure this out by resolving links and shit
s = "@rpath/#{s}"
return s
end
Expand Down

0 comments on commit b0168da

Please sign in to comment.