File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,11 @@ function canonical_rpaths(rpath::RPath)
130
130
paths[idx] = replace (paths[idx], " @loader_path" => origin)
131
131
paths[idx] = replace (paths[idx], " @executable_path" => origin)
132
132
paths[idx] = abspath (paths[idx])
133
+
134
+ # Make sure that if it's a directory, it _always_ has a "/" at the end.
135
+ if isdir (paths[idx]) && paths[idx][end ] != ' /'
136
+ paths[idx] = paths[idx] * " /"
137
+ end
133
138
end
134
139
return paths
135
140
end
Original file line number Diff line number Diff line change @@ -71,5 +71,5 @@ rpaths(crp::COFFRPath) = String[]
71
71
72
72
# COFF files don't have an RPath, but they _do_ always search the $ORIGIN
73
73
function canonical_rpaths (crp:: COFFRPath )
74
- return [dirname (path (handle (crp)))]
74
+ return [abspath ( dirname (path (handle (crp))) * " / " )]
75
75
end
You can’t perform that action at this time.
0 commit comments