* [PATCH] libc/newlib: remove hard-coded "-O"
@ 2011-11-28 8:33 Zhenqiang Chen
2011-11-28 18:34 ` Yann E. MORIN
2011-11-29 22:56 ` Yann E. MORIN
0 siblings, 2 replies; 3+ messages in thread
From: Zhenqiang Chen @ 2011-11-28 8:33 UTC (permalink / raw)
To: Yann E. MORIN; +Cc: crossgcc
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] libc/newlib: remove hard-coded "-O"
2011-11-28 8:33 [PATCH] libc/newlib: remove hard-coded "-O" Zhenqiang Chen
@ 2011-11-28 18:34 ` Yann E. MORIN
2011-11-29 22:56 ` Yann E. MORIN
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2011-11-28 18:34 UTC (permalink / raw)
To: crossgcc; +Cc: Zhenqiang Chen
Zhenqiang, All,
On Monday 28 November 2011 09:33:11 Zhenqiang Chen wrote:
> 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" \
Queued here. Thank you!
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] libc/newlib: remove hard-coded "-O"
2011-11-28 8:33 [PATCH] libc/newlib: remove hard-coded "-O" Zhenqiang Chen
2011-11-28 18:34 ` Yann E. MORIN
@ 2011-11-29 22:56 ` Yann E. MORIN
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2011-11-29 22:56 UTC (permalink / raw)
To: crossgcc; +Cc: Zhenqiang Chen
Zhenqiang, All,
On Monday 28 November 2011 09:33:11 Zhenqiang Chen wrote:
> 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"
Applied as #85477445af56. Thank you!
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-29 22:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-28 8:33 [PATCH] libc/newlib: remove hard-coded "-O" Zhenqiang Chen
2011-11-28 18:34 ` Yann E. MORIN
2011-11-29 22:56 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).