libc/newlib: remove hard-coded "-O"
authorZhenqiang Chen <zhenqiang.chen@linaro.org>
Mon Nov 28 16:05:23 2011 +0800 (2011-11-28)
changeset 278785477445af56
parent 2786 4f7ed2e72178
child 2788 b6faa28e76e0
libc/newlib: remove hard-coded "-O"

With hard-coded "-O", users can not customize CFLAGS_FOR_TARGET
by CT_TARGET_CFLAGS. If "-O" is needed, users can input it in
CT_TARGET_CFLAGS. By default, "-Os" is enabled.

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
scripts/build/libc/newlib.sh
     1.1 --- a/scripts/build/libc/newlib.sh	Mon Nov 28 18:35:17 2011 +0100
     1.2 +++ b/scripts/build/libc/newlib.sh	Mon Nov 28 16:05:23 2011 +0800
     1.3 @@ -94,7 +94,7 @@
     1.4      #   target : the machine newlib runs on
     1.5      CT_DoExecLog CFG                                    \
     1.6      CC_FOR_BUILD="${CT_BUILD}-gcc"                      \
     1.7 -    CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS} -O"          \
     1.8 +    CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}"             \
     1.9      AR=${CT_TARGET}-ar                                  \
    1.10      RANLIB=${CT_TARGET}-ranlib                          \
    1.11      "${CT_SRC_DIR}/newlib-$(libc_newlib_version)/configure" \