# HG changeset patch # User "Yann E. MORIN" # Date 1256510155 -3600 # Node ID c938fd487dea0572cdaf1b2e198c684f6d78d31b # Parent 26f232fcfd4502e1f17c321f91b9582e132a3ac6 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) diff -r 26f232fcfd45 -r c938fd487dea scripts/build/libc/newlib.sh --- a/scripts/build/libc/newlib.sh Wed Oct 28 19:40:13 2009 +0100 +++ b/scripts/build/libc/newlib.sh Sun Oct 25 23:35:55 2009 +0100 @@ -46,6 +46,11 @@ 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 @@ 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} \