From: David Ahern <dsahern@kernel.org>
To: netdev@vger.kernel.org
Cc: stephen@networkplumber.org, David Ahern <dsahern@kernel.org>
Subject: [PATCH iproute2-next] configure: Allow command line override of toolchain
Date: Sun, 27 Feb 2022 18:54:35 -0700 [thread overview]
Message-ID: <20220228015435.1328-1-dsahern@kernel.org> (raw)
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)
next reply other threads:[~2022-02-28 1:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-28 1:54 David Ahern [this message]
2022-02-28 17:11 ` [PATCH iproute2-next] configure: Allow command line override of toolchain 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220228015435.1328-1-dsahern@kernel.org \
--to=dsahern@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).