From 541869bc137d5ea651f418587aa8b6561f45e9a6ea3d8744e20cae1128902dc9 Mon Sep 17 00:00:00 2001 From: Petr Mladek Date: Thu, 11 Oct 2012 13:29:34 +0000 Subject: [PATCH] Accepting request 137779 from home:namtrac:bugfix - Instead of disabling optimizations completely, use -O2. Fixes bnc#780611 OBS-URL: https://build.opensuse.org/request/show/137779 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=12 --- libreoffice.changes | 6 ++++++ libreoffice.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libreoffice.changes b/libreoffice.changes index 58add0f..92ca46c 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 25 09:57:15 UTC 2012 - idonmez@suse.com + +- Instead of disabling optimizations completely, use -O2. + Fixes bnc#780611 + ------------------------------------------------------------------- Fri Jul 13 10:37:51 UTC 2012 - pmladek@suse.com diff --git a/libreoffice.spec b/libreoffice.spec index f9a3918..d37f864 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1435,7 +1435,7 @@ source /etc/profile.d/alljava.sh export JAVA_HOME=%{java_home} %endif # use RPM_OPT_FLAGS, ... -ARCH_FLAGS="`echo $RPM_OPT_FLAGS | sed -e 's/\-O[0-9s]//g' -e 's/\-fexceptions//g'` -fno-strict-aliasing" +ARCH_FLAGS="`echo $RPM_OPT_FLAGS | sed -e 's/\-O[0-9s]/-O2/g' -e 's/\-fexceptions//g'` -fno-strict-aliasing" CFLAGS="$ARCH_FLAGS" CXXFLAGS="$ARCH_FLAGS" export ARCH_FLAGS CFLAGS CXXFLAGS