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>
This commit is contained in:
Zhenqiang Chen 2011-11-28 16:05:23 +08:00
parent 6fc2908b8b
commit 381366c8b6

View File

@ -94,7 +94,7 @@ do_libc_start_files() {
# target : the machine newlib runs on
CT_DoExecLog CFG \
CC_FOR_BUILD="${CT_BUILD}-gcc" \
CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS} -O" \
CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \
AR=${CT_TARGET}-ar \
RANLIB=${CT_TARGET}-ranlib \
"${CT_SRC_DIR}/newlib-$(libc_newlib_version)/configure" \