From 2a52daee0ad6fdfc137da9dd7172dbf636e3bfa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Dor=C5=88=C3=A1k?= Date: Fri, 20 Jun 2014 14:36:41 +0200 Subject: [PATCH] Use -fno-delete-null-pointer-checks to avoid segfaults with gcc 4.9 (patch by Mikko Tiihonen) --- mariadb.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mariadb.spec b/mariadb.spec index 5e56720..6762962 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -7,7 +7,7 @@ Name: mariadb Version: 10.0.12 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 1 Summary: A community developed branch of MySQL @@ -319,6 +319,8 @@ echo "main.gis-precise : rhbz#906367" >> mysql-test/rh-skipped-tests.list CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" # force PIC mode so that we can build libmysqld.so CFLAGS="$CFLAGS -fPIC" +# GCC 4.9 causes segfaults: https://mariadb.atlassian.net/browse/MDEV-6360 +CFLAGS="$CFLAGS -fno-delete-null-pointer-checks" # gcc seems to have some bugs on sparc as of 4.4.1, back off optimization # submitted as bz #529298 %ifarch sparc sparcv9 sparc64 @@ -820,6 +822,9 @@ fi %{_mandir}/man1/mysql_client_test.1* %changelog +* Wed Jun 18 2014 Mikko Tiihonen - 1:10.0.12-2 +- Use -fno-delete-null-pointer-checks to avoid segfaults with gcc 4.9 + * Tue Jun 17 2014 Jakub Dorňák - 1:10.0.12-1 - Rebase to version 10.0.12