Passing a very large number of objects directly to ar can sometimes
cause an 'Argument list too long' error.
---
compat/windows/makedef | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/compat/windows/makedef b/compat/windows/makedef
index af42f08fd5..963f2b5b55 100755
--- a/compat/windows/makedef
+++ b/compat/windows/makedef
@@ -46,7 +46,9 @@ libname=$(mktemp -u "library").lib
trap 'rm -f -- $libname' EXIT
if [ -n "$AR" ]; then
- $AR rcs ${libname} $@ >/dev/null
+ echo "rcs ${libname} $@" > ${libname}.args
+ $AR @${libname}.args > /dev/null
+ rm -f ${libname}.args
else
machine_flag=""
case "$LDFLAGS" in
--
2.54.0.windows.1
_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]