From 97848cb18a3c776e5811b4bcc0a7ddbeb9ed7837 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Wed, 17 Feb 2016 10:46:15 +0100 Subject: [PATCH] use -O1 compiler optimizations on ppc64le (bug #1309225) --- lzo.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lzo.spec b/lzo.spec index 31f9e69..83129a7 100644 --- a/lzo.spec +++ b/lzo.spec @@ -1,6 +1,6 @@ Name: lzo Version: 2.08 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Data compression library with very fast (de)compression Group: System Environment/Libraries License: GPLv2+ @@ -50,6 +50,14 @@ done %build +# Workaround for ppc64le bug #1309225 +%ifarch ppc64le +CFLAGS="-O1 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mcpu=power8 -mtune=power8" ; export CFLAGS ; +CXXFLAGS="-O1 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mcpu=power8 -mtune=power8" ; export CXXFLAGS ; +FFLAGS="-O1 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mcpu=power8 -mtune=power8 -I/usr/lib64/gfortran/modules" ; export FFLAGS ; +FCFLAGS="-O1 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mcpu=power8 -mtune=power8 -I/usr/lib64/gfortran/modules" ; export FCFLAGS ; +%endif + %configure --disable-dependency-tracking --disable-static --enable-shared make %{?_smp_mflags} # build minilzo too (bz 439979) @@ -107,6 +115,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Feb 17 2016 Karsten Hopp - 2.08-7 +- use -O1 compiler optimizations on ppc64le (bug #1309225) + * Thu Feb 04 2016 Fedora Release Engineering - 2.08-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild