Accepting request 711825 from home:marxin:branches:Base:System

- Set optflags for i686 after _lto_cflags is set (boo#1138807).

OBS-URL: https://build.opensuse.org/request/show/711825
OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=531
This commit is contained in:
Andreas Schwab 2019-06-25 13:42:26 +00:00 committed by Git OBS Bridge
parent b8dcef20ae
commit e6a16310f4
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 25 07:30:13 UTC 2019 - Martin Liška <mliska@suse.cz>
- Set optflags for i686 after _lto_cflags is set (boo#1138807).
-------------------------------------------------------------------
Thu Jun 20 10:02:20 UTC 2019 - Martin Liška <mliska@suse.cz>

View File

@ -83,7 +83,6 @@ BuildRequires: zlib-devel
%if "%flavor" == "i686"
ExclusiveArch: i586 i686
BuildArch: i686
%global optflags %(echo "%optflags"|sed -e s/i586/i686/) -march=i686 -mtune=generic
%endif
%define __filter_GLIBC_PRIVATE 1
@ -557,6 +556,9 @@ find . -name configure | xargs touch
# Disable LTO due to a usage of top-level assembler that
# causes LTO issues (boo#1138807).
%define _lto_cflags %{nil}
%if "%flavor" == "i686"
%global optflags %(echo "%optflags"|sed -e s/i586/i686/) -march=i686 -mtune=generic
%endif
if [ -x /bin/uname.bin ]; then
/bin/uname.bin -a
else