From ff7a54609beb929d70c3243d03b15eb29b6fb5cb Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 19 Jul 2019 12:35:02 +0000 Subject: Accept raw external $CC for cross-compiling --- configure | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure b/configure index b9dc50e..c0042bb 100755 --- a/configure +++ b/configure @@ -358,6 +358,13 @@ else cross= fi echo "Checking for C compiler..." +trycc ${CC} +if test -n "$cross" && test -n "$CC_AUTO" ; then + b=`basename "$CC"` + if test "${b}" = "${b##$cross}" ; then + echo "Warning: compiler $CC is declared as a cross-compiler for target $target but does not start with prefix $cross" 1>&2 + fi +fi trycc ${cross}${CC} trycc ${cross}gcc trycc ${cross}clang -- cgit v1.2.3