From d6a2cf3cbef581478185c25d8a7a6109a201c583 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 24 Feb 2015 06:39:59 +0000 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-core/glibc/glibc.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/recipes-core/glibc/glibc.inc') 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): 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") return selected_optimization SELECTED_OPTIMIZATION := "${@get_optimization(d)}" -- cgit v1.2.3-54-g00ecf