From: Zofia Abramowska Date: Wed, 14 May 2025 11:25:07 +0000 (+0200) Subject: Force building with dwarf-4 to fix debugsource generation X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F324609%2F2;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git Force building with dwarf-4 to fix debugsource generation This package doesn't use gbs defined GCC and CC flags. In that case DWARF-5 is used by default and is not supported by our rpmbuild. This creates errors when generating debug packages and results in empty debugsource package. Change-Id: I49a9cb9750058cae36df7b8ad6cb6958d4c007a3 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 73fc2b99..1dd84db1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,8 +34,8 @@ INCLUDE(FindPkgConfig) ############################# compiler flags ################################## -SET(CMAKE_C_FLAGS "-g") -SET(CMAKE_CXX_FLAGS "-g -std=c++17") +SET(CMAKE_C_FLAGS "-g -gdwarf-4") +SET(CMAKE_CXX_FLAGS "-g -std=c++17 -gdwarf-4") SET(CMAKE_C_FLAGS_PROFILING "-O0 -pg") SET(CMAKE_CXX_FLAGS_PROFILING "-O0 -pg") SET(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb")