Subject: [PATCH iproute2-next] configure: Allow command line override of toolchain

From: David Ahern <[email-masked]>
Date: Sun, 27 Feb 2022 18:54:35 -0700

Easy way to build for both gcc and clang.

Signed-off-by: David Ahern <[email-masked]>
---
 configure | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index 8ddff43c6a7d..13f2d1739b99 100755
--- a/configure
+++ b/configure
@@ -19,10 +19,10 @@ check_toolchain()
     : ${AR=ar}
     : ${CC=gcc}
     : ${YACC=bison}
-    echo "PKG_CONFIG:=${PKG_CONFIG}" >>$CONFIG
-    echo "AR:=${AR}" >>$CONFIG
-    echo "CC:=${CC}" >>$CONFIG
-    echo "YACC:=${YACC}" >>$CONFIG
+    echo "PKG_CONFIG?=${PKG_CONFIG}" >>$CONFIG
+    echo "AR?=${AR}" >>$CONFIG
+    echo "CC?=${CC}" >>$CONFIG
+    echo "YACC?=${YACC}" >>$CONFIG
 }
 
 check_atm()
-- 
2.24.3 (Apple Git-128)