From: yarl <5469248+yarlB@users.noreply.github.com> Date: Sun, 8 Apr 2018 14:18:34 +0000 (+0200) Subject: Substitution of CC parameter homogenization. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ad264fca19cd4629ca689afe0c27a7c24990cf94;p=osstest%2Frumprun.git Substitution of CC parameter homogenization. --- diff --git a/build-rr.sh b/build-rr.sh index 933525a..a4e46f1 100755 --- a/build-rr.sh +++ b/build-rr.sh @@ -56,6 +56,8 @@ helpme () exit 1 } +CC=${CC:-cc} + BUILDRUMP=$(pwd)/buildrump.sh # overriden by script if true @@ -309,7 +311,7 @@ checktools () delay=5 # check that gcc is modern enough - vers=$(${CC:-cc} -E -dM - < /dev/null | LANG=C awk ' + vers=$(${CC} -E -dM - < /dev/null | LANG=C awk ' /__GNUC__/ {version += 100*$3} /__GNUC_MINOR__/ {version += $3} END { print version; if (version) exit 0; exit 1; }') \ @@ -326,7 +328,7 @@ checktools () fi # check that ld is modern enough - vers=$(${CC:-cc} -Wl,--version 2>&1 | LANG=C awk ' + vers=$(${CC} -Wl,--version 2>&1 | LANG=C awk ' /GNU ld/{version += 100*$NF} END { print version; if (version) exit 0; exit 1; }') \ || die unable to probe ld version