linkage_checker: system framework links are harmless.

These do not seem to cause runtime errors.

Fixes #9338
This commit is contained in:
Mike McQuaid 2020-11-30 14:23:59 +00:00
parent f5bd2ee0c3
commit 7228e60da5
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -285,10 +285,12 @@ class LinkageChecker
def harmless_broken_link?(dylib)
# libgcc_s_* is referenced by programs that use the Java Service Wrapper,
# and is harmless on x86(_64) machines
[
return true if [
"/usr/lib/libgcc_s_ppc64.1.dylib",
"/opt/local/lib/libgcc/libgcc_s.1.dylib",
].include?(dylib)
dylib.start_with?("/System/Library/Frameworks/")
end
# Display a list of things.