[FFmpeg-devel] [PATCH] configure: Silence Xcode warnings about duplicate libraries
Michael Niedermayer
michael at niedermayer.cc
Sun Oct 13 22:54:23 EEST 2024
On Wed, Sep 25, 2024 at 03:16:40PM +0300, 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
>
> if ! disabled network; then
> check_func getaddrinfo $network_extralibs
this causes problems with build and
also there is a:
-rwxr-x--- 1 michael michael 317432 Oct 13 21:39 _warn_duplicate_libraries*
also if i replace this by -Wl,-no_warn_catgirl i get
-rwxr-x--- 1 michael michael 178629347 Oct 13 21:45 _warn_catgirl
with no warning
(that is on mingw64)
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241013/768f3823/attachment.sig>
More information about the ffmpeg-devel
mailing list