Disable LTO on riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-05-10 15:14:15 +03:00
parent 2a32358622
commit b39c172654
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: xdp-tools
Version: 1.3.1
Release: 1%{?dist}
Release: 1.0.riscv64%{?dist}
Summary: Utilities and example programs for use with XDP
%global _soversion 1.3.0
@ -26,6 +26,10 @@ BuildRequires: wireshark-cli
BuildRequires: bpftool
%endif
%ifarch riscv64
%global _lto_cflags %{nil}
%endif
# Always keep xdp-tools and libxdp packages in sync
Requires: libxdp = %{version}-%{release}
@ -122,6 +126,9 @@ make install V=1
%{_libdir}/pkgconfig/libxdp.pc
%changelog
* Wed May 10 2023 David Abdurachmanov <davidlt@rivosinc.com> 1.3.1-1.0.riscv64
- Disable LTO on riscv64
* Thu Feb 23 2023 Toke Høiland-Jørgensen <toke@redhat.com> 1.3.1-1
- Upstream version bump