1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

configure: improve ar test for response files

This commit is contained in:
Gyan Doshi
2025-03-18 19:19:56 +05:30
parent c0b7f817a4
commit b75b568b3d

13
configure vendored
View File

@ -5230,12 +5230,6 @@ else
ar_o='$@'
fi
if $ar 2>&1 | grep -qi "@.*file"; then
ar_objs="true"
else
ar_objs=""
fi
add_cflags $extra_cflags
add_cxxflags $extra_cxxflags
add_objcflags $extra_objcflags
@ -7759,6 +7753,13 @@ case $ld_type in
;;
esac
{
ar_out=${FFTMPDIR}/test$LIBSUF
respfile="@/dev/null"
out_arg="$(echo $ar_o | sed "s;\$@;$ar_out;g")"
test_cmd $ar $arflags $out_arg $respfile && ar_objs="true" || ar_objs=""
}
enable frame_thread_encoder
enabled asm || { arch=c; disable $ARCH_LIST $ARCH_EXT_LIST; }