[poky] [PATCH A] n450: add optimization flags to gtk+ for n450 to avoid gcc core2 bug
Darren Hart
dvhart at linux.intel.com
Wed Mar 16 15:34:21 PDT 2011
On 03/16/2011 03:09 PM, Darren Hart wrote:
> On 03/16/2011 02:49 PM, Darren Hart wrote:
>>
>> Fixes [YOCTO #853]
>>
>> Without these added optimization flags, the matchbox-panel (and
>> possibly other)
>> applications would segfault. This patch applies the change only to the
>> gtk+
>> recipe for the n450 bsp.
>>
>> Signed-off-by: Darren Hart<dvhart at linux.intel.com>
>> CC: Ke Yu<ke.yu at intel.com>
>> ---
>> meta-n450/recipes-gnome/gtk+/gtk+_2.22.1.bbappend | 2 ++
>> 1 files changed, 2 insertions(+), 0 deletions(-)
>> create mode 100644 meta-n450/recipes-gnome/gtk+/gtk+_2.22.1.bbappend
>>
>> diff --git a/meta-n450/recipes-gnome/gtk+/gtk+_2.22.1.bbappend
>> b/meta-n450/recipes-gnome/gtk+/gtk+_2.22.1.bbappend
>> new file mode 100644
>> index 0000000..3af4187
>> --- /dev/null
>> +++ b/meta-n450/recipes-gnome/gtk+/gtk+_2.22.1.bbappend
>> @@ -0,0 +1,2 @@
>> +#-fomit-frame-pointer in default FULL_OPTIMIZATION will cause
>> matchbox-panel segfault on n450
>> +FULL_OPTIMIZATION_n450 = "-fexpensive-optimizations
>> -frename-registers -O2 -ggdb -feliminate-unused-debug-types"
>
>
> Note that this patch only addresses the problem for the n450, and it
> would remain on the atom-pc. If we don't want to take Patch B, then we
> would need another solution for atom-pc. The only thing that comes to
> mind would be to add the above to the core gtk+ recipe in the form:
>
> #-fomit-frame-pointer in default FULL_OPTIMIZATION will cause
> matchbox-panel segfault on atom-pc
> FULL_OPTIMIZATION_atom-pc = "-fexpensive-optimizations
> -frename-registers -O2 -ggdb -feliminate-unused-debug-types"
Guess I should have looked at the recipe first :-) It already does this.
I'll push the n450 patch per Saul's preference of minimal change.
--
Darren
>
>
> Thoughts?
>
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
More information about the poky
mailing list