summaryrefslogtreecommitdiff
path: root/scripts/crosstool-NG.sh.in
diff options
context:
space:
mode:
authorTitus von Boxberg <titus@v9g.de>2010-05-19 16:13:00 (GMT)
committerTitus von Boxberg <titus@v9g.de>2010-05-19 16:13:00 (GMT)
commit16ef145f50ed47167a7d49df2a8bb2d8feb59d0e (patch)
treea4a8b7a4ee7302a55cfbba8f79502294dc97807f /scripts/crosstool-NG.sh.in
parent5417e0f79c8d804d18c9fd0f7c786319bd969f19 (diff)
scripts/crosstool-NG.sh.in: On MacOS/BSD use the output of CT_DoConfigGuess for CT_BUILD.
On 64bit MacOS `gcc -dumpmachine` gives i686 for the host machine. This conflicts with the expectations of some following configure scripts that a 64bit x86 is given as x86_64; i686 is understood as a 32 bit machine. config.guess sets the host machine in CT_BUILD correctly. yann.morin.1998@anciens.enib.fr: As suggested by Khem RAJ on the ML, always use config.guess.
Diffstat (limited to 'scripts/crosstool-NG.sh.in')
-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