netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2-next] configure: Allow command line override of toolchain
@ 2022-02-28  1:54 David Ahern
  2022-02-28 17:11 ` Stephen Hemminger
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: David Ahern @ 2022-02-28  1:54 UTC (permalink / raw)
  To: netdev; +Cc: stephen, David Ahern

Easy way to build for both gcc and clang.

Signed-off-by: David Ahern <dsahern@kernel.org>
---
 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)


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-03-08 16:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-28  1:54 [PATCH iproute2-next] configure: Allow command line override of toolchain David Ahern
2022-02-28 17:11 ` Stephen Hemminger
2022-02-28 17:50 ` patchwork-bot+netdevbpf
2022-03-02 13:56 ` Ido Schimmel
2022-03-05 18:11   ` David Ahern
2022-03-05 19:32     ` Stephen Hemminger
2022-03-07 15:09     ` Ido Schimmel
2022-03-08 16:26       ` David Ahern
2022-03-08 16:41         ` Ido Schimmel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).