diff options
author | Peter Urbanec <openembedded-devel@urbanec.net> | 2015-03-02 15:28:22 +1100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-02 22:06:01 +0000 |
commit | ecd052ebf9681145710e11549f7f725a941bd423 (patch) | |
tree | 6ea1b1b74a23be89fee4040166b9f8e6e3b754b5 | |
parent | 03a357765f3471030e327019375e122cb8dc2ec2 (diff) | |
download | poky-ecd052ebf9681145710e11549f7f725a941bd423.tar.gz |
glibc: Fix check for -Os.
The check is supposed to be for -Os, but it's actually testing -O0.
(From OE-Core rev: 32d01a341cac894617d47ab7ebe9485ec3c8ac92)
Signed-off-by: Peter Urbanec <openembedded-devel@urbanec.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/glibc/glibc.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc index 4d5e98b969..e33f596b72 100644 --- a/meta/recipes-core/glibc/glibc.inc +++ b/meta/recipes-core/glibc/glibc.inc | |||
@@ -15,7 +15,7 @@ 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": | 18 | elif bb.utils.contains("SELECTED_OPTIMIZATION", "-Os", "x", "", d) == "x": |
19 | bb.note("glibc can't be built with -Os, -Os -Wno-error will be used instead.") | 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") | 20 | return selected_optimization.replace("-Os", "-Os -Wno-error") |
21 | return selected_optimization | 21 | return selected_optimization |