aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2024-09-25 15:13:34 +0300
committerMartin Storsjö <martin@martin.st>2024-09-27 13:42:42 +0300
commitbd22d7e601933ef8a0975fc9252cee2d44632f61 (patch)
tree5b75ade4bfd0cb7be423559067df1b2206d41910
parent81c6e6c9eeb2ced02654631dbe83d342e6b59505 (diff)
downloadffmpeg-bd22d7e601933ef8a0975fc9252cee2d44632f61.tar.gz
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. Signed-off-by: Martin Storsjö <martin@martin.st>
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index 643ffddd19..c8fb49a7a4 100755
--- a/configure
+++ b/configure
@@ -6490,6 +6490,7 @@ check_cc intrinsics_sse2 emmintrin.h "__m128i test = _mm_setzero_si128()"
check_ldflags -Wl,--as-needed
check_ldflags -Wl,-z,noexecstack
+check_ldflags -Wl,-no_warn_duplicate_libraries
if ! disabled network; then
check_func getaddrinfo $network_extralibs