[FFmpeg-cvslog] configure: Silence Xcode warnings about duplicate libraries

Martin Storsjö git at videolan.org
Tue May 6 10:59:40 EEST 2025


ffmpeg | branch: release/7.0 | Martin Storsjö <martin at martin.st> | Wed Sep 25 15:13:34 2024 +0300| [5c61d2bdddc450c294576cce6a344c7fcc9ec12d] | committer: Martin Storsjö

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 at martin.st>
(cherry picked from commit bd22d7e601933ef8a0975fc9252cee2d44632f61)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5c61d2bdddc450c294576cce6a344c7fcc9ec12d
---

 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 819e1ae1e9..28b530e8a6 100755
--- a/configure
+++ b/configure
@@ -6448,6 +6448,7 @@ check_cc intrinsics_neon arm_neon.h "int16x8_t test = vdupq_n_s16(0)"
 
 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



More information about the ffmpeg-cvslog mailing list