[OE-core] how to pass or set specific gcc flags?

Richard Purdie richard.purdie at linuxfoundation.org
Mon Aug 8 14:55:14 UTC 2011


On Sun, 2011-08-07 at 12:08 -0500, Kumar Gala wrote:
> We'd like to pass:
> 
> --enable-targets=all
> 
> on ppc when we target a 64-bit platform but happen to build a 32-bit
> toolchain & rootfs, its useful to still have 64-bit support in the
> compiler to build a 64-bit kernel if desired in this scenario.  Also,
> this seems useful for the multilib situation.
> 
> Wondering what the best way of doing this.  Adding something into the
> tune-ppcFOOBAR file but not sure how to do that so it gets picked up
> by the right toolchain pass.  And what do we even override?  I
> suggested adding a GCC_EXTRA_OECONF.

I'd caution against this since we don't currently handle packaging of
toolchains directly using multilibs and I suspect the compiler wouldn't
bootstrap properly either.

Its not the compiler itself I worry about but pieces like libc and
libgcc.

Cheers,

Richard





More information about the Openembedded-core mailing list