From 7228e60da51392b20d55e0c087b2082b86fb3bbf Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 30 Nov 2020 14:23:59 +0000 Subject: [PATCH] linkage_checker: system framework links are harmless. These do not seem to cause runtime errors. Fixes #9338 --- Library/Homebrew/linkage_checker.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/linkage_checker.rb b/Library/Homebrew/linkage_checker.rb index 461073ed9c..9025bf0374 100644 --- a/Library/Homebrew/linkage_checker.rb +++ b/Library/Homebrew/linkage_checker.rb @@ -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.