[OE-core] [PATCH 1/1] eglibc: always compile with optimization.

Phil Blundell philb at gnu.org
Mon Nov 12 09:48:40 UTC 2012


On Mon, 2012-11-12 at 11:31 +0800, jackie.huang at windriver.com wrote:
> +# eglibc can't be built without optimization, if someone tries to compile an
> +# entire image as -O0, we override it with -O2 here and give a note about it.
> +def get_optimization(d):
> +    if base_contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x":
> +        bb.note("eglibc can't be built with -O0, -O2 will be used instead.")
> +        selected_optimization = d.getVar("SELECTED_OPTIMIZATION", True)
> +        return selected_optimization.replace("-O0", "-O2")
> +    return selected_optimization

Did you test this patch at all?

p.






More information about the Openembedded-core mailing list