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.
1 # Build script for libtool
3 CT_LIBTOOL_VERSION=2.2.6b
5 do_companion_tools_libtool_get() {
6 CT_GetFile "libtool-${CT_LIBTOOL_VERSION}" \
7 {ftp,http}://ftp.gnu.org/gnu/libtool
10 do_companion_tools_libtool_extract() {
11 CT_Extract "libtool-${CT_LIBTOOL_VERSION}"
12 CT_Patch "libtool" "${CT_LIBTOOL_VERSION}"
15 do_companion_tools_libtool_build() {
16 CT_DoStep EXTRA "Installing libtool"
17 mkdir -p "${CT_BUILD_DIR}/build-libtool"
18 CT_Pushd "${CT_BUILD_DIR}/build-libtool"
21 "${CT_SRC_DIR}/libtool-${CT_LIBTOOL_VERSION}/configure" \
22 --prefix="${CT_TOOLS_OVERIDE_DIR}"
24 CT_DoExecLog ALL make install