Skip to contentSkip to conversation

warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O)

DISCUSSION Robert Berger 1 participant 1 message Jun 5, 2019

lore
Share & tools
lore
#0 lore raw

Hi,

I can see in some examples:

warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O)

which can be fixed by passing the proper CFLAGS.

Unfortunately the warning is only visible in log files.

1) Is there a way to show compiler warnings when you bitbake on the console (without -DDD and/or -v and filtering for warning:)

2) How would you add a check for this to insane.bbclass?

Regards,

Robert