[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220228015435.1328-1-dsahern@kernel.org>
Date: Sun, 27 Feb 2022 18:54:35 -0700
From: David Ahern <dsahern@...nel.org>
To: netdev@...r.kernel.org
Cc: stephen@...workplumber.org, David Ahern <dsahern@...nel.org>
Subject: [PATCH iproute2-next] configure: Allow command line override of toolchain
Easy way to build for both gcc and clang.
Signed-off-by: David Ahern <dsahern@...nel.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)
Powered by blists - more mailing lists