[PATCH] libc/newlib: remove hard-coded "-O"
Zhenqiang Chen
zhenqiang.chen@linaro.org
Mon Nov 28 08:33:00 GMT 2011
exporting patch:
# HG changeset patch
# User Zhenqiang Chen <zhenqiang.chen@linaro.org>
# Date 1322467523 -28800
# Node ID 6e30947fabf76287cc92c16a12421aaa7ab51f0c
# Parent 49af7802dcd538ec3cb64337030b03ac2c6344d2
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>
diff -r 49af7802dcd5 -r 6e30947fabf7 scripts/build/libc/newlib.sh
--- a/scripts/build/libc/newlib.sh Tue Nov 22 10:08:10 2011 +0100
+++ b/scripts/build/libc/newlib.sh Mon Nov 28 16:05:23 2011 +0800
@@ -94,7 +94,7 @@
# 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" \
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list