Build with -ffp-contract=off on riscv64

Otherwise we have a single failing tests because on NaN.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-03-01 12:58:09 +02:00
parent 6522d900f8
commit 054127749a
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 8 additions and 1 deletions

View File

@ -47,7 +47,7 @@
Name: gawk
Summary: The GNU version of the AWK text processing utility
Version: 5.1.1
Release: 5%{?dist}
Release: 5.0.riscv64%{?dist}
License: GPLv3+ and GPLv2+ and LGPLv2+ and BSD
@ -205,6 +205,10 @@ git commit --all --amend --no-edit > /dev/null
# ---------------
%build
%ifarch riscv64
%define _pkg_extra_cflags -ffp-contract=off
%endif
# NOTE: The re-generating of ./configure (below) should be removed once the
# direct dependency on 'aclocal-1.15' is fixed in upstream and backported.
autoreconf --force --verbose
@ -292,6 +296,9 @@ install -m 0644 -p awklib/eg/data/* %{buildroot}%{_docdir}/%{name}/eg/data/
# =============================================================================
%changelog
* Wed Mar 01 2023 David Abdurachmanov <davidlt@rivosinc.com> - 5.1.1-5.0.riscv64
- Build with -ffp-contract=off on riscv64
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild