Subject: bug#30127: [PATCH] ar-lib: ignore -nologo option

From: Mike Frysinger <[email-masked]>
Date: Mon, 7 Feb 2022 23:32:12 -0500

We already invoke $AR with -NOLOGO all the time, so we can ignore the
option entirely if the user specifies it.

* lib/ar-lib: Ignore -NOLOGO.
---
 lib/ar-lib | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/ar-lib b/lib/ar-lib
index 9dc8ef6df054..54c6bdbf7f1b 100755
--- a/lib/ar-lib
+++ b/lib/ar-lib
@@ -135,6 +135,10 @@ do
       AR="$AR $1"
       shift
       ;;
+    -nologo | -NOLOGO)
+      # We always invoke AR with -nologo, so don't need to add it again.
+      shift
+      ;;
     *)
       action=$1
       shift
-- 
2.34.1