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} \