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 <[email protected]>
---
  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

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to