On Mon, Feb 18, 2019 at 7:43 AM <luciosantin...@libero.it> wrote:
>
> 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"

it depends on recipes respecting compiler flags from environment but
most of them do.

CFLAGS += "-DMMC_WRITE" could do it.

>
> 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
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to