[OE-core] [PATCH 5/6] gcc-cross: Pass EXTRA_OECONF_GCC_FLOAT to configure

Richard Purdie richard.purdie at linuxfoundation.org
Thu May 7 10:24:46 UTC 2015


On Thu, 2015-05-07 at 00:17 -0700, Khem Raj wrote:
> > On May 6, 2015, at 11:53 PM, Richard Purdie <richard.purdie at linuxfoundation.org> wrote:
> > We do ship
> > an environment file and in that file we have the options gcc needs to
> > work, the sysroot, the other cflags and the float abi. Unless we go back
> > to a setup of hardcoding the cflags into gcc and have a gcc per set of
> > cflags, this isn't going to work since it solves part of the problem but
> > not all of it.
> > 
> 
> its also how the target libraries are compiled should match the ABI flags for target gcc

Agreed, the other option is we have gcc pull the right config from the
sysroot in question.

> > Our other alternative is to wrap gcc with a script (preferred in PATH)
> > which ensures the right cflags are present. I'd obviously prefer not to
> > do that but it is an option if we believe people can't cope with the
> > environment script.
> > 
> 
> Would solve the cross compile scenario but on-device scenario I am not sure

On device is a completely different story. That gcc is target specific
and *should* have the right flags set. That isn't what the patch in this
thread is about though. On target gcc has always been target specific
and will remain so.

Cheers,

Richard




More information about the Openembedded-core mailing list