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

Khem Raj raj.khem at gmail.com
Thu Jul 8 21:00:23 UTC 2010


On Wed, Jul 7, 2010 at 10:39 PM, Graham Gower <graham.gower at gmail.com> 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
> 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
>

csl already has a similar feature and its turned on by default but IIRC
its only a warning which can be turned off by -Wno-poison-system-directories
I am interested in patching svn others not so much in above lis

> 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