My application's makefile adds a couple things to CFLAGS as follows:
CFLAGS += -Wall -std=gnu99
When I build the application with OpenEmbedded BitBake however, BitBake is apparently ignoring the CFLAGS variable from the makefile.
I found that adding the following line in the application's recipe causes the flags to be used during a build via BitBake:
EXTRA_OEMAKE += "CFLAGS='-Wall -std=gnu99'"
Why does BitBake ignore the CFLAGS from the makefile like this? Also, is there a better solution than adding the line above to recipe?
I'd prefer that the makefile's CFLAGS just be used in order to eliminate the redundancy.