diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-02-24 06:39:59 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-24 23:12:18 +0000 |
commit | d6a2cf3cbef581478185c25d8a7a6109a201c583 (patch) | |
tree | 24e05ea3538ebae35ae2697c9059dc915558003c /meta/recipes-core/glibc/glibc.inc | |
parent | 4d83a90bfb5a41deb81ca8878363a89fccf95d89 (diff) | |
download | poky-d6a2cf3cbef581478185c25d8a7a6109a201c583.tar.gz |
glibc: Help compile with -Os
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
Also updates the options group patch to work better with -Os.
(From OE-Core rev: 98e1dc574ef3be668d6a42232ad030d1af93c49f)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc/glibc.inc')
-rw-r--r-- | meta/recipes-core/glibc/glibc.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc index 99a4753044..4d5e98b969 100644 --- a/meta/recipes-core/glibc/glibc.inc +++ b/meta/recipes-core/glibc/glibc.inc | |||
@@ -15,6 +15,9 @@ def get_optimization(d): | |||
15 | if bb.utils.contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x": | 15 | if bb.utils.contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x": |
16 | bb.note("glibc can't be built with -O0, -O2 will be used instead.") | 16 | bb.note("glibc can't be built with -O0, -O2 will be used instead.") |
17 | return selected_optimization.replace("-O0", "-O2") | 17 | return selected_optimization.replace("-O0", "-O2") |
18 | elif bb.utils.contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x": | ||
19 | bb.note("glibc can't be built with -Os, -Os -Wno-error will be used instead.") | ||
20 | return selected_optimization.replace("-Os", "-Os -Wno-error") | ||
18 | return selected_optimization | 21 | return selected_optimization |
19 | 22 | ||
20 | SELECTED_OPTIMIZATION := "${@get_optimization(d)}" | 23 | SELECTED_OPTIMIZATION := "${@get_optimization(d)}" |