From 957c2c983cc7b09221442ef976764c96e3b0ad83 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Mon, 19 Sep 2022 12:37:32 +0800 Subject: [PATCH] linkage_checker: ignore broken linkage with LLVM libc++. This linkage will be broken in LLVM 15, but this is typically harmless since dyld will load `/usr/lib/libc++.1.dylib` instead. --- Library/Homebrew/linkage_checker.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/linkage_checker.rb b/Library/Homebrew/linkage_checker.rb index 0807be0fdf..ad3544ee50 100644 --- a/Library/Homebrew/linkage_checker.rb +++ b/Library/Homebrew/linkage_checker.rb @@ -311,9 +311,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 + # dyld will fall back to Apple libc++ if LLVM's is not available. [ "/usr/lib/libgcc_s_ppc64.1.dylib", "/opt/local/lib/libgcc/libgcc_s.1.dylib", + # TODO: Report linkage with `/usr/lib/libc++.1.dylib` when this link is broken. + "#{HOMEBREW_PREFIX}/opt/llvm/lib/libc++.1.dylib", ].include?(dylib) end