This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
# HG changeset patch # User Titus von Boxberg <titus@v9g.de> # Date 1274091369 -7200 # Node ID 8a7da2f309b5cb00bcdf78c53100891d4ec2aafb # Parent f01bd736911a5e500495695893cf48f19be8f840 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. diff -r f01bd736911a -r 8a7da2f309b5 scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Mon May 17 11:29:26 2010 +0200 +++ b/scripts/crosstool-NG.sh.in Mon May 17 12:16:09 2010 +0200 @@ -334,7 +334,16 @@ # Determine build system if not set by the user case "${CT_BUILD}" in - "") CT_BUILD=$("${CT_BUILD_PREFIX}gcc${CT_BUILD_SUFFIX}" -dumpmachine);; + "") + case "$CT_SYS_OS" in + Darwin|*BSD) + CT_BUILD=$(CT_DoConfigGuess) + ;; + *) + CT_BUILD=$("${CT_BUILD_PREFIX}gcc${CT_BUILD_SUFFIX}" -dumpmachine) + ;; + esac + ;; esac # Prepare mangling patterns to later modify BUILD and HOST (see below) -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |