From: Peter Urbanec <openembedded-devel@urbanec.net>
To: Khem Raj <raj.khem@gmail.com>, openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] glibc: Help compile with -Os
Date: Mon, 02 Mar 2015 15:23:48 +1100 [thread overview]
Message-ID: <54F3E5D4.7070808@urbanec.net> (raw)
In-Reply-To: <1424759999-25846-1-git-send-email-raj.khem@gmail.com>
On 24/02/15 17:39, Khem Raj wrote:
> When we modify to use -Os
> -Werror doesnt go well with it, glibc needs to be
> cleaned up for that but until then lets disable -Werror
> when using -Os
>
> Change-Id: I5495255fce67953f15c07e423e3e0eef41d4ce5e
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> meta/recipes-core/glibc/glibc.inc | 3 ++
> .../glibc/glibc/eglibc-use-option-groups.patch | 47 ++++++++++++++++++----
> 2 files changed, 43 insertions(+), 7 deletions(-)
>
> diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc
> index 99a4753..4d5e98b 100644
> --- a/meta/recipes-core/glibc/glibc.inc
> +++ b/meta/recipes-core/glibc/glibc.inc
> @@ -15,6 +15,9 @@ def get_optimization(d):
> if bb.utils.contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x":
> bb.note("glibc can't be built with -O0, -O2 will be used instead.")
> return selected_optimization.replace("-O0", "-O2")
> + elif bb.utils.contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x":
> + bb.note("glibc can't be built with -Os, -Os -Wno-error will be used instead.")
> + return selected_optimization.replace("-Os", "-Os -Wno-error")
I think there's a typo here which prevents this from working as
intended. The second check is done on "-O0" when it's supposed to be "-Os"
Cheers,
Peter
next prev parent reply other threads:[~2015-03-02 4:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 6:39 [PATCH] glibc: Help compile with -Os Khem Raj
2015-02-24 12:11 ` Burton, Ross
2015-02-24 16:08 ` Khem Raj
2015-03-02 4:23 ` Peter Urbanec [this message]
2015-03-02 4:35 ` Peter Urbanec
2015-03-02 6:48 ` Khem Raj
2015-03-05 6:53 ` Robert Yang
2015-03-06 9:28 ` Khem Raj
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=54F3E5D4.7070808@urbanec.net \
--to=openembedded-devel@urbanec.net \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.