diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-10-25 22:35:55 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-10-25 22:35:55 (GMT) |
commit | 88c997020f8bd963227cd823c0a336142b6289cf (patch) | |
tree | 272086b682ae76044e2f4bbf2ae67da1bf590054 | |
parent | c2d42656466da224bdc0d29098cca7354de96640 (diff) |
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
-rw-r--r-- | scripts/build/libc/newlib.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index 196334d..4c32f2a 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -46,6 +46,11 @@ do_libc() { CT_DoLog EXTRA "Configuring C library" + # Note: newlib handles the build/host/target a little bit differently + # than one would expect: + # build : not used + # host : the machine building newlib + # target : the machine newlib runs on # CC="${CT_TARGET}-gcc ${CT_LIBC_EXTRA_CC_ARGS} ${extra_cc_args}" \ BUILD_CC="${CT_BUILD}-gcc" \ CFLAGS="${CT_TARGET_CFLAGS} ${CT_LIBC_GLIBC_EXTRA_CFLAGS} -O" \ @@ -53,8 +58,7 @@ do_libc() { RANLIB=${CT_TARGET}-ranlib \ CT_DoExecLog ALL \ "${CT_SRC_DIR}/newlib-${CT_LIBC_VERSION}/configure" \ - --build=${CT_BUILD} \ - --host=${CT_HOST} \ + --host=${CT_BUILD} \ --target=${CT_TARGET} \ --prefix=${CT_PREFIX_DIR} \ ${extra_config} \ |