libc/newlib: fix host/target confusion 1.5
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Oct 25 23:35:55 2009 +0100 (2009-10-25)
branch1.5
changeset 1644c938fd487dea
parent 1601 26f232fcfd45
child 1645 01d01185eb18
libc/newlib: fix host/target confusion

newlib handles the build/host/target a bit differently as one would expect:
build : not used
host : the nachine that builds newlib
target : the machine on which newlib will run
(transplanted from 3ccb1f76576fc7b730c57a0d1e183bce20cc47c0)
scripts/build/libc/newlib.sh
     1.1 --- a/scripts/build/libc/newlib.sh	Wed Oct 28 19:40:13 2009 +0100
     1.2 +++ b/scripts/build/libc/newlib.sh	Sun Oct 25 23:35:55 2009 +0100
     1.3 @@ -46,6 +46,11 @@
     1.4  
     1.5      CT_DoLog EXTRA "Configuring C library"
     1.6  
     1.7 +    # Note: newlib handles the build/host/target a little bit differently
     1.8 +    # than one would expect:
     1.9 +    #   build  : not used
    1.10 +    #   host   : the machine building newlib
    1.11 +    #   target : the machine newlib runs on
    1.12  #    CC="${CT_TARGET}-gcc ${CT_LIBC_EXTRA_CC_ARGS} ${extra_cc_args}" \
    1.13      BUILD_CC="${CT_BUILD}-gcc"                                      \
    1.14      CFLAGS="${CT_TARGET_CFLAGS} ${CT_LIBC_GLIBC_EXTRA_CFLAGS} -O"   \
    1.15 @@ -53,8 +58,7 @@
    1.16      RANLIB=${CT_TARGET}-ranlib                                      \
    1.17      CT_DoExecLog ALL                                                \
    1.18      "${CT_SRC_DIR}/newlib-${CT_LIBC_VERSION}/configure"             \
    1.19 -        --build=${CT_BUILD}                                         \
    1.20 -        --host=${CT_HOST}                                           \
    1.21 +        --host=${CT_BUILD}                                          \
    1.22          --target=${CT_TARGET}                                       \
    1.23          --prefix=${CT_PREFIX_DIR}                                   \
    1.24          ${extra_config}                                             \