[yocto] Add new compiler macro

luciosantinell at libero.it luciosantinell at libero.it
Mon Feb 18 07:42:07 PST 2019


Hi, i wanted to add a compiler macro (NEW_MACRO) in order to compile all the code hidden beetween
#ifdef NEW_MACRO

#endif
in all my recipes. I think that the right place to do that is in bitbake.conf file present under poky/meta/conf but when i try to do: 

TARGET_CPPFLAGS += "-MMC_WRITE"

I get the error :
configure: error: cannot compute suffix of object files: cannot compile

How can i send the macro to the compiler in the correct way?

Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190218/228033b1/attachment.html>


More information about the yocto mailing list