Skip to content

Commit e8a906c

Browse files
committed
Auditor: Fix confusion with @rpath/ at the start of dylib IDs
1 parent 5960dff commit e8a906c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

BinaryBuilderAuditor.jl/src/Scanning.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ function scan_files(prefix::String, platform::AbstractPlatform,
119119
end
120120
soname = basename(rel_path)
121121
end
122+
123+
# If this is an apple platform, and the dylib ID is something like
124+
# `@rpath/libfoo.dylib`, just keep track of `libfoo.dylib`.
125+
if Sys.isapple(platform) && startswith(soname, "@")
126+
soname = basename(soname)
127+
end
122128
soname_locator[soname] = rel_path
123129
end
124130

0 commit comments

Comments
 (0)