From 3a877764da1fcfe981d4d9696621cbee2655e55a Mon Sep 17 00:00:00 2001 From: Igor Burago Date: Mon, 18 Dec 2023 15:13:23 +0800 Subject: [PATCH] 9l: silence the 'ignoring duplicate libraries' warning on macOS --- bin/9l | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/9l b/bin/9l index 5432fe41..2b1c5906 100755 --- a/bin/9l +++ b/bin/9l @@ -333,6 +333,8 @@ quiet() ignore=$ignore'|is (often|almost always) misused' ignore=$ignore'|is dangerous, better use' ignore=$ignore'|text-based stub' + # macOS linker is incessant about reoccurring -l9, -lsec, -lthread: + ignore=$ignore'|ld: warning: ignoring duplicate libraries:' sed 's/.*: In function `[^:]*: *//' "$1" | egrep -v "$ignore"