[mariadb] Build with -O3 on ppc64 Related: #1051069

Honza Horak hhorak at fedoraproject.org
Fri Jan 10 09:36:20 UTC 2014


commit d01f73bd77052230fab25b5bee76553b349e1a5b
Author: Honza HorĂ¡k <hhorak at redhat.com>
Date:   Fri Jan 10 09:51:00 2014 +0100

    Build with -O3 on ppc64
    Related: #1051069

 mariadb.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/mariadb.spec b/mariadb.spec
index 96f8a8a..d647e73 100644
--- a/mariadb.spec
+++ b/mariadb.spec
@@ -7,7 +7,7 @@
 
 Name: mariadb
 Version: 5.5.34
-Release: 6%{?dist}
+Release: 7%{?dist}
 Epoch: 1
 
 Summary: A community developed branch of MySQL
@@ -304,6 +304,11 @@ CFLAGS="$CFLAGS -fPIC"
 %ifarch sparc sparcv9 sparc64
 CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O1|g" `
 %endif
+# significant performance gains can be achieved by compiling with -O3 optimization
+# rhbz#1051069
+%ifarch ppc64
+CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O3|g" `
+%endif
 CXXFLAGS="$CFLAGS"
 export CFLAGS CXXFLAGS
 # building with PIE
@@ -796,6 +801,10 @@ fi
 %{_mandir}/man1/mysql_client_test.1*
 
 %changelog
+* Fri Jan 10 2014 Honza Horak <hhorak at redhat.com> 1:5.5.34-7
+- Build with -O3 on ppc64
+  Related: #1051069
+
 * Fri Jan 10 2014 Marcin Juszkiewicz <mjuszkiewicz at redhat.com> 1:5.5.34-6
 - Disable main.gis-precise test also for AArch64
 - Disable perfschema.func_file_io and perfschema.func_mutex for AArch64


More information about the scm-commits mailing list