On Sat, Nov 26, 2011 at 2:16 AM, Richard Purdie <richard.pur...@linuxfoundation.org> wrote: > On Fri, 2011-11-25 at 18:39 -0800, Khem Raj wrote: >> On Fri, Nov 25, 2011 at 7:06 AM, Richard Purdie >> <richard.pur...@linuxfoundation.org> wrote: >> > On my system, the sys/time.h header is in a subdir off /usr/include >> > which causes a build failure. Apply the target CFLAGS fix to native >> > builds as well to address this. >> >> hmmm I thought CFLAGS would be automtically translated with >> BBCLASSEXTEND = "native" > > For native recipes, CFLAGS is replaced by BUILD_CFLAGS...
yes I see. A little niggle I was thinking of is that at present for a target recipe if something gets changed in CFLAGS or TARGET_CFLAGS that makes to the compile phase as combined CFLAGS for native we rewrite CFLAGS = BUILD_CFLAGS So either CFLAGS += BUILD_FLAGS for native CFLAGS += TARGET_CFLAGS will make it consistent or just override CFLAGS with BUILD_CFLAGS or TARGET_CFLAGS depending on recipe type > > Cheers, > > Richard > > > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core > _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core