summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/crosstool-NG.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index 379f170..cc54202 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