From: David Ahern Date: Mon, 7 Feb 2022 00:02:44 +0000 (-0700) Subject: configure: Allow command line override of toolchain X-Git-Tag: v5.18.0~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=386ae64c8312dd27b09508993a7c8386aff8b1d3;p=thirdparty%2Fiproute2.git configure: Allow command line override of toolchain Easy way to build for both gcc and clang. Signed-off-by: David Ahern Acked-by: Stephen Hemminger --- diff --git a/configure b/configure index 8ddff43c6..13f2d1739 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()