# HG changeset patch # User "Yann E. MORIN" # Date 1310920099 -7200 # Node ID d99b1adc440233e0ccdf58c8aa5fd5b9bdbf89e9 # Parent 0eab838768b1bbd5323cb00972eb64305af83f7c cc/gcc: always build core compilers to run on the build machine The core compilers are used to build the C library, so they should always run on the build machine, not on the host. Signed-off-by: "Yann E. MORIN" diff -r 0eab838768b1 -r d99b1adc4402 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Sun Jan 01 17:49:44 2012 +0100 +++ b/scripts/build/cc/gcc.sh Sun Jul 17 18:28:19 2011 +0200 @@ -69,7 +69,7 @@ ,,nptl) do_core=y core_opts+=( "mode=static" ) - core_opts+=( "host=${CT_HOST}" ) + core_opts+=( "host=${CT_BUILD}" ) core_opts+=( "complibs=${CT_COMPLIBS_DIR}" ) core_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" ) core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" ) @@ -104,7 +104,7 @@ case "${CT_BARE_METAL},${CT_CANADIAN},${CT_THREADS}" in y,*,*) do_core=y - core_opts+=( "host=${CT_HOST}" ) + core_opts+=( "host=${CT_BUILD}" ) core_opts+=( "mode=static" ) core_opts+=( "complibs=${CT_COMPLIBS_DIR}" ) core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" ) @@ -113,7 +113,7 @@ ,,nptl) do_core=y core_opts+=( "mode=shared" ) - core_opts+=( "host=${CT_HOST}" ) + core_opts+=( "host=${CT_BUILD}" ) core_opts+=( "build_libgcc=yes" ) core_opts+=( "complibs=${CT_COMPLIBS_DIR}" ) core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" ) @@ -121,7 +121,7 @@ ,,win32) do_core=y core_opts+=( "mode=static" ) - core_opts+=( "host=${CT_HOST}" ) + core_opts+=( "host=${CT_BUILD}" ) core_opts+=( "build_libgcc=yes" ) core_opts+=( "complibs=${CT_COMPLIBS_DIR}" ) core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" ) @@ -129,7 +129,7 @@ *) do_core=y core_opts+=( "mode=static" ) - core_opts+=( "host=${CT_HOST}" ) + core_opts+=( "host=${CT_BUILD}" ) core_opts+=( "complibs=${CT_COMPLIBS_DIR}" ) core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" ) if [ "${CT_CC_GCC_4_3_or_later}" = "y" ]; then