]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
- switch build type to RelWithDebInfo
authorMichael Schroeder <mls@suse.de>
Fri, 20 Jan 2012 14:56:25 +0000 (15:56 +0100)
committerMichael Schroeder <mls@suse.de>
Fri, 20 Jan 2012 14:56:25 +0000 (15:56 +0100)
CMakeLists.txt
package/libsolv.spec.in

index df6f90cc3171f4cf9d135e33a44b25398e25777f..a577810d64935285c4ff74944577566db7f1aba8 100644 (file)
@@ -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)
index 07bf9cc78a7fc388ec75179ae7c058fb47951d70..6e673282c055a1f37e7e8edc95d973bc43fc23bf 100644 (file)
@@ -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} \