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:05:55 +0000 |
commit | 32d01a341cac894617d47ab7ebe9485ec3c8ac92 (patch) | |
tree | 09f6ea0abe08793fcd131308d6930c99d6ce2de6 | |
parent | 708b6793e67fa44c335af83af51f8da36f3f68ca (diff) | |
download | openembedded-core-32d01a341cac894617d47ab7ebe9485ec3c8ac92.tar.gz openembedded-core-32d01a341cac894617d47ab7ebe9485ec3c8ac92.tar.bz2 openembedded-core-32d01a341cac894617d47ab7ebe9485ec3c8ac92.zip |
glibc: Fix check for -Os.
The check is supposed to be for -Os, but it's actually testing -O0.
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): 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": + elif bb.utils.contains("SELECTED_OPTIMIZATION", "-Os", "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") return selected_optimization |