Accepting request 779080 from home:Guillaume_G:branches:openSUSE:Factory:ARM

- Disable LTO on %arm as LTO fails on neon errors

OBS-URL: https://build.opensuse.org/request/show/779080
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/mozilla-nss?expand=0&rev=305
This commit is contained in:
Wolfgang Rosenauer 2020-02-25 13:41:19 +00:00 committed by Git OBS Bridge
parent 2e89924539
commit 478511aedc
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 25 13:20:51 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Disable LTO on %arm as LTO fails on neon errors
-------------------------------------------------------------------
Sat Feb 8 16:12:53 UTC 2020 - Wolfgang Rosenauer <wr@rosenauer.org>

View File

@ -185,7 +185,12 @@ cd nss
#make generate
%build
%ifarch %arm
# LTO fails on neon errors
%global _lto_cflags %{nil}
%else
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%endif
cd nss
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE99}")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""