Re: [PATCH 4/4] native.bbclass: poison TARGET_CFLAGS etc for native builds
From: Burton, Ross <hidden>
Date: 2016-02-27 20:50:15
From: Burton, Ross <hidden>
Date: 2016-02-27 20:50:15
On 27 February 2016 at 08:20, Richard Purdie < richard.purdie@linuxfoundation.org> wrote:
Wouldn't it perhaps be nicer just to unexport these?
I think
TARGET_CPPFLAGS[unexport] = "1"
might do it or we could do:
delvarFlag("TARGET_CPPFLAGS", "export")
?
Regardless of approach, this is likely going to need some extensive
testing.Unexporting is certainly neater, but a world build with poisoned flags would certainly catch anything that's doing it wrong (openjdk for example appears to be passing build cflags to host g++). Ross