From 16ef145f50ed47167a7d49df2a8bb2d8feb59d0e Mon Sep 17 00:00:00 2001 From: Titus von Boxberg Date: Wed, 19 May 2010 18:13:00 +0200 Subject: 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. 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 -- cgit v0.10.2-6-g49f6