Enable LTO on riscv64

Binutils incl. potential patch to fix TEXTRELs.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-05-11 09:57:26 +03:00
parent 3449781aca
commit b2ef7cc9db
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 4 additions and 5 deletions

View File

@ -10,11 +10,7 @@
%global snapshot %{nil}
%global git_sha %{nil}
%global bcond_default_debug 0
%ifnarch riscv64
%global bcond_default_lto %{nil}
%else
%global bcond_default_lto 0
%endif
%global bcond_default_test 0
%global obsoletes_device_plugins 1:0.9.9.95-1
@ -187,7 +183,7 @@ Name: NetworkManager
Summary: Network connection manager and user applications
Epoch: %{epoch_version}
Version: %{rpm_version}
Release: %{release_version}%{?snap}.0.riscv64%{?dist}
Release: %{release_version}%{?snap}.1.riscv64%{?dist}
Group: System Environment/Base
License: GPLv2+ and LGPLv2+
URL: https://networkmanager.dev/
@ -1249,6 +1245,9 @@ fi
%changelog
* Thu May 11 2023 David Abdurachmanov <davidlt@rivosinc.com> - 1:1.42.6.1.1.riscv64
- Enable LTO on riscv64
* Thu Apr 27 2023 David Abdurachmanov <davidlt@rivosinc.com> - 1:1.42.6.1.0.riscv64
- Disable LTO on riscv64