9l: silence the 'ignoring duplicate libraries' warning on macOS

This commit is contained in:
Igor Burago 2023-12-18 15:13:23 +08:00 committed by Dan Cross
parent 0bc1ff0fa0
commit 3a877764da

2
bin/9l
View file

@ -333,6 +333,8 @@ quiet()
ignore=$ignore'|is (often|almost always) misused' ignore=$ignore'|is (often|almost always) misused'
ignore=$ignore'|is dangerous, better use' ignore=$ignore'|is dangerous, better use'
ignore=$ignore'|text-based stub' 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" | sed 's/.*: In function `[^:]*: *//' "$1" |
egrep -v "$ignore" egrep -v "$ignore"