[OE-core] [PATCH 1/1] glib-2.0-native:add option march to BUILD_CFLAGS

Hongxu Jia hongxu.jia at windriver.com
Wed Jan 9 08:23:52 UTC 2013


On 01/07/2013 02:28 AM, Colin Walters wrote:
> On Sun, 2013-01-06 at 16:34 +0800, Hongxu Jia wrote:
>
>> +# Add option -march to BUILD_CFLAGS in order to let the atomic operations
>> +# ("lock free") be available while using old version GCC on x86 host to
>> +# compile glib-2.0-native
>> +BUILD_CFLAGS += "-march=${@'${BUILD_ARCH}'.replace('_','-')}"
> Shouldn't this be handled more generically for all native recipes?
>
>
Hi Colin,

I have a fully test and the qemu-native has the similar problem, and I will
resend the patch.

It's a bad idea to modify bitbake.conf to add option -march to BUILD_CFLAGS,
because it's global and its side effect is unknown, such as beecrypt-native
do_compile will fail if we do that.

So it's best to test most of the native recipes to have a check about 
the similar
problem and fix them separately, and the packagegroup-toolset-native.bb
could work for that.

Regards,
Hongxu




More information about the Openembedded-core mailing list