Re: [OE-core] [PATCH] Disable building libgcc with -O0

2013-11-12 Thread Phil Blundell
On Wed, Nov 13, 2013 at 11:02:36AM +0800, Lei Liu wrote: > On 2013年11月13日 07:58, Phil Blundell wrote: > > On Mon, 2013-11-11 at 12:30 +0800, Lei Liu wrote: > >> +def get_optimization(d): > >> +selected_optimization = d.getVar("SELECTED_OPTIMIZATION", True) > >> +if base_contains("SELECTED_O

Re: [OE-core] [PATCH] Disable building libgcc with -O0

2013-11-12 Thread Lei Liu
On 2013年11月13日 07:58, Phil Blundell wrote: > On Mon, 2013-11-11 at 12:30 +0800, Lei Liu wrote: >> +def get_optimization(d): >> +selected_optimization = d.getVar("SELECTED_OPTIMIZATION", True) >> +if base_contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x": >> +bb.note("libgc

Re: [OE-core] [PATCH] Disable building libgcc with -O0

2013-11-12 Thread Phil Blundell
On Mon, 2013-11-11 at 12:30 +0800, Lei Liu wrote: > +def get_optimization(d): > +selected_optimization = d.getVar("SELECTED_OPTIMIZATION", True) > +if base_contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x": > +bb.note("libgcc can't be built with -O0, -O2 will be used inste

Re: [OE-core] [PATCH] Disable building libgcc with -O0

2013-11-12 Thread Saul Wold
Please fix up the comment to follow the guildlines on this patch and your other one. http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines Sau! On 11/10/2013 08:30 PM, Lei Liu wrote: Link error happens for valgrind when linking unoptimized libgcc. Libgcc requires symbol _Unwind

[OE-core] [PATCH] Disable building libgcc with -O0

2013-11-10 Thread Lei Liu
Link error happens for valgrind when linking unoptimized libgcc. Libgcc requires symbol _Unwind_Resume defined in libgcc_eh which in turn requires pulling in entire glibc. We can't make valgrind link with glibc due to its design. So don't build libgcc without optimizations, so that calls to _Unwi