9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.6k stars 318 forks source link

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

Closed igorburago closed 7 months ago

igorburago commented 7 months ago

Ever since the update of Xcode tools to version 15.1.0 in macOS 14.2, ld started to warn every time the same library is given more than once in its arguments. Since -l9, -lsec, -lthread frequently reoccur in Plan 9 Port linker invocations, this new behavior fills the INSTALL output with this useless warning.

Add it to the ignore list that is used to filter out the linker output. While at it, make the mechanics of warning-silencing in 9l uniform with 9c (and make quoting of variable substitutions a bit more consistent in both, along the way).