Fix debuginfo generation
authorPatrick McCarty <patrick.mccarty@linux.intel.com>
Wed, 3 Apr 2013 18:29:07 +0000 (11:29 -0700)
committerPatrick McCarty <patrick.mccarty@linux.intel.com>
Wed, 3 Apr 2013 18:41:29 +0000 (11:41 -0700)
commit4a23fc9bded92dbe398068ce5584d3e9e58f4a38
treea5d945ad1d356e34d121c8d73b046d59f1a77760
parent2b1c348a1357cde9bd0e1f4865b7adc50aa4d451
Fix debuginfo generation

There are two issues with apps/home/starter that are preventing
debuginfo from being generated:

- In the toplevel makefile, CMAKE_C_FLAGS does not include the '-g'
  flag, so debugging symbols are not added to the /usr/bin/starter
  binary. By using the %cmake macro in the spec file, the default CFLAGS
  from RPM (includes '-g') are exported to the build environment, and
  Cmake correctly uses these compiler flags during the build.

- In lock-setting/lockscreen-options/CMakeLists.txt, CMAKE_CXX_FLAGS is
  used, but the three library source files are C source, not C++. Thus,
  CMAKE_CXX_FLAGS is undefined by default and does not include CXXFLAGS
  from the environment. The solution is to use CMAKE_C_FLAGS instead,
  which picks up CFLAGS from the environment.

This commit fixes both issues.

Change-Id: Ibe96bf8a34aab05d3cf29c02b33e881cc9eddaf3
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
lock-setting/lockscreen-options/CMakeLists.txt
packaging/starter.spec [changed mode: 0755->0644]