From 388f0ad7a837da3e56e26fc062b4cf61024baff8 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Oct 11 2018 01:26:03 +0000 Subject: Fix the debug build --- diff --git a/mariadb.spec b/mariadb.spec index 7ae37d8..88dbd6b 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -760,7 +760,7 @@ CFLAGS="$CFLAGS -fPIC" CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O3|g" ` %endif # Override all optimization flags when making a debug build -%{?with_debug: CFLAGS="$CFLAGS -0g"} +%{?with_debug: CFLAGS="$CFLAGS -O0 -g"} CXXFLAGS="$CFLAGS" export CFLAGS CXXFLAGS @@ -1078,6 +1078,7 @@ rm -r %{buildroot}%{_datadir}/sql-bench rm %{buildroot}%{_bindir}/{mysqltest_embedded,mysql_client_test_embedded} rm %{buildroot}%{_mandir}/man1/{mysqltest_embedded,mysql_client_test_embedded}.1* %endif # embedded +rm %{buildroot}%{_bindir}/test-connect-t rm %{buildroot}%{_bindir}/{mysql_client_test,mysqltest} rm %{buildroot}%{_mandir}/man1/{mysql_client_test,my_safe_process,mysqltest}.1* rm %{buildroot}%{_mandir}/man1/{mysql-test-run,mysql-stress-test}.pl.1*