Since Xcode 15, macOS developer tools use a new linker. The new linker by default warns for duplicate -l options. As this is a known and expected thing, not to be considered an issue, ask for the warning to be silenced. This silences linker warnings like this: ld: warning: ignoring duplicate libraries: '-lc++', '-lcrypto', '-lm', '-logg', '-lpthread', '-lssl', '-lvorbis', '-lvpx', '-lz' The linker can also warn about duplicate -rpath options, and there's currently no option to silence those warnings.
Unified · Split
| @@ -6490,6 +6490,7 @@ check_cc intrinsics_sse2 emmintrin.h "__m128i test = _mm_setzero_si128()" · 6489 unmodified lines | |||
| 6490 | 6490 | ||
| 6491 | check_ldflags -Wl,--as-needed | 6491 | check_ldflags -Wl,--as-needed |
| 6492 | check_ldflags -Wl,-z,noexecstack | 6492 | check_ldflags -Wl,-z,noexecstack |
| 6493 | check_ldflags -Wl,-no_warn_duplicate_libraries | ||
| 6493 | 6494 | ||
| 6494 | if ! disabled network; then | 6495 | if ! disabled network; then |
| 6495 | check_func getaddrinfo $network_extralibs | 6496 | check_func getaddrinfo $network_extralibs |