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