summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/glibc/glibc.inc2
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