<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 11, 2013 at 2:00 PM, Richard Purdie <span dir="ltr"><<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb adM"><div class="im">> So, of course we shouldn't ignore the CFLAGS from OE, and the CFLAGS<br>
> would set the right sysroot, and of course we fixed our software so<br>
> that we don't ignore CFLAGS anymore... but that still looks like a bug<br>
> to me.<br>
><br>
</div></div>Not really, its actually intentionally designed like this since its<br>
pointless rebuilding gcc-cross multiple time just because we want to use<br>
it with a different sysroot. We therefore just pass in the arguments to<br>
the compiler to ensure it uses the right one. If you remove them, you<br>
hit the problems you describe.<br>
<br>
We should probably compile in a bogus sysroot so it never works and<br>
makes this kind of issue more visible.<br></blockquote></div><br>hmm. ok. i see. it would certainly help to have a better 'error' message... i suppose that not having a builtin sysroot at all, would be an even bigger problem as it would default to /usr/include... </div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>