diff options
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | package/libsolv.spec.in | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index df6f90c..a577810 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -206,6 +206,7 @@ MESSAGE (STATUS "Looking for modules in ${CMAKE_MODULE_PATH}") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wl,--as-needed") set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -DNDEBUG -O3") +set (CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS} -g -DNDEBUG -O3") set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g3 -O0") ADD_SUBDIRECTORY (src) diff --git a/package/libsolv.spec.in b/package/libsolv.spec.in index 07bf9cc..6e67328 100644 --- a/package/libsolv.spec.in +++ b/package/libsolv.spec.in @@ -169,7 +169,7 @@ cmake $CMAKE_FLAGS \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DLIB=%{_lib} \ -DCMAKE_VERBOSE_MAKEFILE=TRUE \ - -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ %{?with_enable_static:-DENABLE_STATIC=1} \ %{?with_disable_shared:-DDISABLE_SHARED=1} \ %{?with_perl_binding:-DENABLE_PERL=1} \ |