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
This commit is contained in:
Petr Mladek 2012-10-11 13:29:34 +00:00 committed by Git OBS Bridge
parent 0a920eb0c8
commit 541869bc13
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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