summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyan Doshi <[email protected]>2025-03-18 19:19:56 +0530
committerGyan Doshi <[email protected]>2025-03-19 15:41:52 +0530
commitb75b568b3d290ce827b80568ced1d68c277309e6 (patch)
tree4da2c93a2fcb8a4fa8a2a48628816884ae0d8979
parentc0b7f817a4c72eb3e501f94f403b3031114e8d98 (diff)
configure: improve ar test for response files
-rwxr-xr-xconfigure13
1 files changed, 7 insertions, 6 deletions
diff --git a/configure b/configure
index d84e32196d..14f7bcde0e 100755
--- a/configure
+++ b/configure
@@ -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; }