diff options
author | Martin Storsjö <martin@martin.st> | 2024-10-14 23:43:11 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2024-10-15 09:53:14 +0300 |
commit | 38d08f5c451a312d9064b81472fa05ff53b2e780 (patch) | |
tree | dbe4377decc42cf23c52e5a2c10d80374e27690b | |
parent | c1edec3a24306f8fa31bebe67644183741cbf0e0 (diff) | |
download | ffmpeg-38d08f5c451a312d9064b81472fa05ff53b2e780.tar.gz |
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@martin.st>
-rwxr-xr-x | configure | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6478,7 +6478,9 @@ 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 [ $target_os = "darwin" ]; then + check_ldflags -Wl,-no_warn_duplicate_libraries +fi if ! disabled network; then check_func getaddrinfo $network_extralibs |