[FFmpeg-cvslog] configure: Only try to use the -no_warn_duplicate_libraries flag on Darwin
Martin Storsjö
git at videolan.org
Tue May 6 10:59:42 EEST 2025
ffmpeg | branch: release/7.0 | Martin Storsjö <martin at martin.st> | Mon Oct 14 23:43:11 2024 +0300| [eaa3fb32d9c8a7816b4abc5f18b72e4de9688ca0] | committer: Martin Storsjö
configure: Only try to use the -no_warn_duplicate_libraries flag on Darwin
While we only add the flag if the linker seems to support it,
it turns out that ld.bfd had a bug where the flag is accidentally
accepted, and the flag produces an output file named
"_warn_duplicate_libraries".
The ld.bfd bug was fixed in binutils 2.36, in
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=3991c7acb29aa8d7d52150695eb3efa03a08dd50.
Signed-off-by: Martin Storsjö <martin at martin.st>
(cherry picked from commit 38d08f5c451a312d9064b81472fa05ff53b2e780)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eaa3fb32d9c8a7816b4abc5f18b72e4de9688ca0
---
configure | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 28b530e8a6..59e06c8d57 100755
--- a/configure
+++ b/configure
@@ -6448,7 +6448,9 @@ 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 [ $target_os = "darwin" ]; then
+ check_ldflags -Wl,-no_warn_duplicate_libraries
+fi
if ! disabled network; then
check_func getaddrinfo $network_extralibs
More information about the ffmpeg-cvslog
mailing list