* config.guess (set_cc_for_build): Guard against $CC_FOR_BUILD,

$HOST_CC and $CC being undefined by using ${var-} style expansion.
	(*:NetBSD:*:*): Likewise for $abi.
	* testsuite/config-guess.sh: Run config.guess under `sh -eu'.
This commit is contained in:
Ben Elliston
2018-05-19 18:58:37 +10:00
parent 32d5bd9cec
commit 382847f038
3 changed files with 11 additions and 4 deletions

View File

@ -30,7 +30,7 @@ run_config_guess()
[ \$1 = -p ] && echo "@PROCESSOR@" && exit 0
EOF
chmod +x uname
output=$(sh -e ../config.guess 2>/dev/null)
output=$(sh -eu ../config.guess 2>/dev/null)
if test $? != 0 ; then
echo "FAIL: unable to guess $machine:$release:$system:$version"
rc=1