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
6490 6490
6491check_ldflags -Wl,--as-needed6491check_ldflags -Wl,--as-needed
6492check_ldflags -Wl,-z,noexecstack6492check_ldflags -Wl,-z,noexecstack
6493check_ldflags -Wl,-no_warn_duplicate_libraries
6493 6494
6494if ! disabled network; then6495if ! disabled network; then
6495 check_func getaddrinfo $network_extralibs6496 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