From: Zhenqiang Chen <zhenqiang.chen@linaro.org>
To: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Cc: crossgcc@sourceware.org
Subject: [PATCH] libc/newlib: remove hard-coded "-O"
Date: Mon, 28 Nov 2011 08:33:00 -0000 [thread overview]
Message-ID: <CACgzC7A=R7_Tbaootjpehx0h-oQcB9Goi+sPdQnQzH3+Nbc89g@mail.gmail.com> (raw)
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
next reply other threads:[~2011-11-28 8:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 8:33 Zhenqiang Chen [this message]
2011-11-28 18:34 ` Yann E. MORIN
2011-11-29 22:56 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACgzC7A=R7_Tbaootjpehx0h-oQcB9Goi+sPdQnQzH3+Nbc89g@mail.gmail.com' \
--to=zhenqiang.chen@linaro.org \
--cc=crossgcc@sourceware.org \
--cc=yann.morin.1998@anciens.enib.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).