cc/gcc: always build core compilers to run on the build machine
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 17 18:28:19 2011 +0200 (2011-07-17)
changeset 2925d99b1adc4402
parent 2924 0eab838768b1
child 2926 d304c8a7bfa8
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" <yann.morin.1998@anciens.enib.fr>
scripts/build/cc/gcc.sh
     1.1 --- a/scripts/build/cc/gcc.sh	Sun Jan 01 17:49:44 2012 +0100
     1.2 +++ b/scripts/build/cc/gcc.sh	Sun Jul 17 18:28:19 2011 +0200
     1.3 @@ -69,7 +69,7 @@
     1.4          ,,nptl)
     1.5              do_core=y
     1.6              core_opts+=( "mode=static" )
     1.7 -            core_opts+=( "host=${CT_HOST}" )
     1.8 +            core_opts+=( "host=${CT_BUILD}" )
     1.9              core_opts+=( "complibs=${CT_COMPLIBS_DIR}" )
    1.10              core_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" )
    1.11              core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
    1.12 @@ -104,7 +104,7 @@
    1.13      case "${CT_BARE_METAL},${CT_CANADIAN},${CT_THREADS}" in
    1.14          y,*,*)
    1.15              do_core=y
    1.16 -            core_opts+=( "host=${CT_HOST}" )
    1.17 +            core_opts+=( "host=${CT_BUILD}" )
    1.18              core_opts+=( "mode=static" )
    1.19              core_opts+=( "complibs=${CT_COMPLIBS_DIR}" )
    1.20              core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
    1.21 @@ -113,7 +113,7 @@
    1.22          ,,nptl)
    1.23              do_core=y
    1.24              core_opts+=( "mode=shared" )
    1.25 -            core_opts+=( "host=${CT_HOST}" )
    1.26 +            core_opts+=( "host=${CT_BUILD}" )
    1.27              core_opts+=( "build_libgcc=yes" )
    1.28              core_opts+=( "complibs=${CT_COMPLIBS_DIR}" )
    1.29              core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
    1.30 @@ -121,7 +121,7 @@
    1.31          ,,win32)
    1.32              do_core=y
    1.33              core_opts+=( "mode=static" )
    1.34 -            core_opts+=( "host=${CT_HOST}" )
    1.35 +            core_opts+=( "host=${CT_BUILD}" )
    1.36              core_opts+=( "build_libgcc=yes" )
    1.37              core_opts+=( "complibs=${CT_COMPLIBS_DIR}" )
    1.38              core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
    1.39 @@ -129,7 +129,7 @@
    1.40          *)
    1.41              do_core=y
    1.42              core_opts+=( "mode=static" )
    1.43 -            core_opts+=( "host=${CT_HOST}" )
    1.44 +            core_opts+=( "host=${CT_BUILD}" )
    1.45              core_opts+=( "complibs=${CT_COMPLIBS_DIR}" )
    1.46              core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
    1.47              if [ "${CT_CC_GCC_4_3_or_later}" = "y" ]; then