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