History

configure: Silence Xcode warnings about duplicate libraries

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.

Martin Storsjö committed 2 years ago

Commit bd22d7e1 parent 81c6e6c1 file · +1 −0Browse files

Unified · Split

configure+1−0
@@ -6490,6 +6490,7 @@ check_cc intrinsics_sse2 emmintrin.h "__m128i test = _mm_setzero_si128()" · 6489 unmodified lines
64906490
64916491 check_ldflags -Wl,--as-needed
64926492 check_ldflags -Wl,-z,noexecstack
6493+check_ldflags -Wl,-no_warn_duplicate_libraries
64936494
64946495 if ! disabled network; then
64956496 check_func getaddrinfo $network_extralibs

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t