Merge pull request #9348 from MikeMcQuaid/harmless-system-frameworks

linkage_checker: system framework links are harmless.
This commit is contained in:
Mike McQuaid 2020-11-30 16:58:29 +00:00 committed by GitHub
commit f496ef685f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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