Update for riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
c758552a10
commit
eca593a134
8
macros
8
macros
|
@ -392,9 +392,11 @@ for k,_ in pairs(stripped_flags) do print(k .. " ") end
|
||||||
# to verify they have real sections/symbols after LTO stripping. That
|
# to verify they have real sections/symbols after LTO stripping. That
|
||||||
# way we can detect installing an unusable .o/.a file. This is on the TODO
|
# way we can detect installing an unusable .o/.a file. This is on the TODO
|
||||||
# list for F34.
|
# list for F34.
|
||||||
%_gcc_lto_cflags -flto=auto -ffat-lto-objects
|
# LTO is slow on riscv64, we want to prioritize build speeds for now.
|
||||||
%_clang_lto_cflags -flto=thin
|
%_gcc_lto_cflags %{nil}
|
||||||
%_lto_cflags %{expand:%%{_%{toolchain}_lto_cflags}}
|
# riscv64 does not have ld.gold support needed for LTO with Clang.
|
||||||
|
%_clang_lto_cflags %{nil}
|
||||||
|
%_lto_cflags %{nil}
|
||||||
|
|
||||||
# Default fortification level.
|
# Default fortification level.
|
||||||
# "%define _fortify_level 2" to downgrade and
|
# "%define _fortify_level 2" to downgrade and
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# Arches that GAP runs on
|
# Arches that GAP runs on
|
||||||
%gap_arches aarch64 ppc64le s390x x86_64
|
%gap_arches aarch64 ppc64le s390x x86_64 riscv64
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# Arches that OpenJDK and dependent packages run on
|
# Arches that OpenJDK and dependent packages run on
|
||||||
%java_arches aarch64 ppc64le s390x x86_64
|
%java_arches aarch64 ppc64le s390x x86_64 riscv64
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
# those arches. Support for POWER and aarch64 arrived in nodejs v4. Support
|
# those arches. Support for POWER and aarch64 arrived in nodejs v4. Support
|
||||||
# for s390x arrived in nodejs v6
|
# for s390x arrived in nodejs v6
|
||||||
|
|
||||||
%nodejs_arches %{ix86} x86_64 %{arm} aarch64 %{power64} s390x
|
%nodejs_arches %{ix86} x86_64 %{arm} aarch64 %{power64} s390x riscv64
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
Summary: Red Hat specific rpm configuration files
|
Summary: Red Hat specific rpm configuration files
|
||||||
Name: redhat-rpm-config
|
Name: redhat-rpm-config
|
||||||
Version: %{baserelease}
|
Version: %{baserelease}
|
||||||
Release: 1%{?dist}
|
Release: 1.0.riscv64%{?dist}
|
||||||
# config.guess, config.sub are GPL-3.0-or-later WITH Autoconf-exception-generic
|
# config.guess, config.sub are GPL-3.0-or-later WITH Autoconf-exception-generic
|
||||||
License: GPL-1.0-or-later AND GPL-2.0-or-later AND GPL-3.0-or-later WITH Autoconf-exception-generic AND Boehm-GC
|
License: GPL-1.0-or-later AND GPL-2.0-or-later AND GPL-3.0-or-later WITH Autoconf-exception-generic AND Boehm-GC
|
||||||
URL: https://src.fedoraproject.org/rpms/redhat-rpm-config
|
URL: https://src.fedoraproject.org/rpms/redhat-rpm-config
|
||||||
|
@ -262,6 +262,11 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora common.lua
|
||||||
%doc buildflags.md
|
%doc buildflags.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 25 2024 David Abdurachmanov <davidlt@rivosinc.com> - 286-1.0.riscv64
|
||||||
|
- Add riscv64 to %%gap_arches, %%java_arches, and %%nodejs_arches
|
||||||
|
- Disable LTO for Clang on riscv64 (no ld.gold support for riscv64)
|
||||||
|
- Disable LTO in general on riscv64 (lowers packages build time)
|
||||||
|
|
||||||
* Tue Mar 12 2024 Omair Majid <omajid@redhat.com> - 286-1
|
* Tue Mar 12 2024 Omair Majid <omajid@redhat.com> - 286-1
|
||||||
- Define %%dotnet_arches with a list of .NET-compatible architectures
|
- Define %%dotnet_arches with a list of .NET-compatible architectures
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue