We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 282a022 commit 5c8a0d3Copy full SHA for 5c8a0d3
share/brewkit/fix-machos.rb
@@ -136,7 +136,11 @@ def fix_rpaths
136
@file.rpaths.each do |rpath|
137
if rpath.start_with? $tea_prefix
138
diff = Pathname.new(rpath).relative_path_from(Pathname.new(@file.filename).parent)
139
- @file.change_rpath rpath, "@loader_path/#{diff}"
+ if @file.rpaths.include? diff
140
+ @file.delete_rpath rpath
141
+ else
142
+ @file.change_rpath rpath, "@loader_path/#{diff}"
143
+ end
144
dirty = true
145
end
146
0 commit comments