diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-07-17 18:28:19 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-07-17 18:28:19 +0200 |
commit | 08161250ed65a9b91d680a305d01acd8052f937f (patch) | |
tree | 57847ff97de87f463f5b376a255ab4ebc28fb19f /scripts | |
parent | e960f66953c340e194cd42a15bbebb910436ed96 (diff) | |
download | crosstool-ng-08161250ed65a9b91d680a305d01acd8052f937f.tar.gz crosstool-ng-08161250ed65a9b91d680a305d01acd8052f937f.tar.bz2 crosstool-ng-08161250ed65a9b91d680a305d01acd8052f937f.zip |
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/cc/gcc.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 0a65f51f..3d2cb5d1 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -69,7 +69,7 @@ do_cc_core_pass_1() { ,,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 @@ do_cc_core_pass_2() { 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 @@ do_cc_core_pass_2() { ,,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 @@ do_cc_core_pass_2() { ,,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_cc_core_pass_2() { *) 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 |