diff mbox series

[FFmpeg-devel] configure: Add dash before arflags

Message ID 20210803210713.77917-1-averne381@gmail.com
State New
Headers show
Series [FFmpeg-devel] configure: Add dash before arflags | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

averne Aug. 3, 2021, 9:07 p.m. UTC
From: averne <averne381@gmail.com>

This allows specifying additional flags with 
`./configure --ar='ar -<...>`.
Previously this resulted in commands such as `ar rcD -T`,
which give an error ("no operation specified"), on certain
versions of ar (eg 2.30-ubuntu).

Signed-off-by: avener <averne381@gmail.com>
---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/configure b/configure
index b61a189b07..428180273b 100755
--- a/configure
+++ b/configure
@@ -4869,10 +4869,10 @@  if $ar 2>&1 | grep -q Microsoft; then
     arflags="-nologo"
     ar_o='-out:$@'
 elif $ar 2>&1 | grep -q "\[D\] "; then
-    arflags="rcD"
+    arflags="-rcD"
     ar_o='$@'
 else
-    arflags="rc"
+    arflags="-rc"
     ar_o='$@'
 fi