[FFmpeg-devel] [PATCH] configure: Silence Xcode warnings about duplicate libraries
Martin Storsjö
martin at martin.st
Thu Sep 26 15:25:05 EEST 2024
On Wed, 25 Sep 2024, Martin Storsjö wrote:
> 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.
> ---
> configure | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/configure b/configure
> index d77a55b653..a450b3c8d8 100755
> --- a/configure
> +++ b/configure
> @@ -6480,6 +6480,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
>
OK'd by Marvin on irc, will push in a day or two.
// Martin
More information about the ffmpeg-devel
mailing list