]> git.pld-linux.org Git - packages/xtrabackup.git/commitdiff
fix build flags
authorElan Ruusamäe <glen@delfi.ee>
Mon, 7 Dec 2015 13:12:00 +0000 (15:12 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 7 Dec 2015 13:12:00 +0000 (15:12 +0200)
the DBUG_ON flag was not passed, caused previous compile failures as
DBUG_PRINT referenced symbol which was not compiled in

xtrabackup.spec

index c652fcd03ff96389500ea20c9c5a533524095f94..276f9fdebbbce11f1b5428bb5120507bcd711402 100644 (file)
@@ -42,8 +42,9 @@ install -d build
 cd build
 %cmake \
        -DBUILD_CONFIG=xtrabackup_release \
-       -DCMAKE_C_FLAGS_RELEASE="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
-       -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
+       -DCMAKE_BUILD_TYPE=%{!?debug:RelWithDebInfo}%{?debug:Debug} \
+       -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
+       -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
        -DENABLE_DTRACE=OFF \
        -DWITH_EDITLINE=system \
        -DWITH_PIC=ON \
This page took 0.116871 seconds and 4 git commands to generate.