[oe] [RFC] Badness with -ibad, a replacement for zecke-no-host-includes.patch.

Denys Dmytriyenko denis at denix.org
Thu Jul 8 17:21:12 UTC 2010


On Thu, Jul 08, 2010 at 03:09:01PM +0930, Graham Gower wrote:
> This patch introduces a new command line parameter to gcc (at
> Zecke's suggestion), -ibad, which may be used to specify
> blacklisted include prefixes. E.g.
> 
> grg at eye7:/tmp$ ~/oe2/tmp/cross/mipsel/bin/mipsel-angstrom-linux-gcc -c test.c -ibad /usr/include -I /usr/include
> CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include
> 
> This makes it much easier to add new blacklisted include paths,
> with a trivial edit to bitbake.conf. No additional paths have
> been added yet, but my motivation for this was to add
> /usr/X11R6/include and /usr/X11/include.
> 
> Please note that the bitbake.conf change will break builds with
> versions of gcc that do not accept this -ibad parameter. I have

Does it mean any external toolchain will be broken or require changes to the 
bitbake.conf?

-- 
Denys

> tested that the ibad patch applies to each of the gcc versions
> in this patch, but only done functional tests for gcc-4.3.3 and
> gcc-.4.1.
> 
> The following gcc versions may need attention:
> 3.3.3
> 3.3.4
> svn
> csl-arm-2007q3
> csl-arm-2008q1
> csl-arm-2008q3
> 
> 3.3.x will require a completely reworked ibad patch. The others
> should be compatible with one of the three ibad patches
> included below.
> 
> -Graham




More information about the Openembedded-devel mailing list