[OE-core] TARGET_CFLAGS for non-target builds

Andre McCurdy armccurdy at gmail.com
Mon Feb 8 23:43:43 UTC 2016


On Mon, Feb 8, 2016 at 3:00 PM, Burton, Ross <ross.burton at intel.com> wrote:
>
> On 8 February 2016 at 20:03, Andre McCurdy <armccurdy at gmail.com> wrote:
>>
>> Can you give an example? Looking at native.bbclass it seems to replace
>> TARGET_CFLAGS with BUILD_CFLAGS, not manipulate it.
>
> Sure, so in doing a native build TARGET_CFLAGS is used.  But as
> security_flags.inc was using TARGET_CFLAGS_append, the end result was
> BUILD_CFLAGS appended with the security flags.

Yes, for native, TARGET_CFLAGS will end up being "${BUILD_CFLAGS}
${SECURITY_CFLAGS}".

However it shouldn't matter - native.bbclass sets CFLAGS to
BUILD_CFLAGS, not TARGET_CFLAGS.

Do you have an example where host gcc can legitimately be invoked with
TARGET_CFLAGS?

> Ross



More information about the Openembedded-core mailing list