summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorZhenqiang Chen <zhenqiang.chen@linaro.org>2011-11-28 08:05:23 (GMT)
committerZhenqiang Chen <zhenqiang.chen@linaro.org>2011-11-28 08:05:23 (GMT)
commit381366c8b6ea88bbc32716a16581ee6865fd0888 (patch)
treecdc77e3f6cc9ff0b3968f8644666e540ef5c6f6d /scripts
parent6fc2908b8b275a6e064888371617ccd4a549e279 (diff)
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/libc/newlib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh
index d987477..1e49485 100644
--- a/scripts/build/libc/newlib.sh
+++ b/scripts/build/libc/newlib.sh
@@ -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" \