diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index 379f1701..cc54202b 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -332,9 +332,9 @@ if [ -z "${CT_RESTART}" ]; then fi # Determine build system if not set by the user - case "${CT_BUILD}" in - "") CT_BUILD=$("${CT_BUILD_PREFIX}gcc${CT_BUILD_SUFFIX}" -dumpmachine);; - esac + if [ -z "${CT_BUILD}" ]; then + CT_BUILD=$(CT_DoConfigGuess) + fi # Prepare mangling patterns to later modify BUILD and HOST (see below) case "${CT_TOOLCHAIN_TYPE}" in