]> code.ossystems Code Review - openembedded-core.git/commit
cmake.bbclass: modify construction of compiler flags
authorJoe Slater <jslater@windriver.com>
Wed, 29 May 2013 15:09:45 +0000 (10:09 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 May 2013 21:18:46 +0000 (22:18 +0100)
commit558662927be550aeb8dd163f65e16b1750bbd127
tree8a72149f394e8d2a2b0e7123d8c0af58c3c24b07
parent0f99d7fed094a59d2c5c01c83ea38dc852aadf6b
cmake.bbclass: modify construction of compiler flags

Use CFLAGS instead of CPPFLAGS for C_FLAGS variants.

When debug optimization is enabled in the local.conf, the debug (-O0) vs
production (-O2) does not change in the builds.  As the CPPFLAGS do not
contain the optimization settings.

Also the CXX_FLAGS are based on CXXFLAGS, so it makes sense to similarly
set the C_FLAGS based on CFLAGS.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cmake.bbclass