Add riscv64 changes

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-07-27 17:06:31 +03:00
parent 965b2d4f0f
commit a22a7f7f09
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
5 changed files with 11 additions and 5 deletions

3
macros
View File

@ -372,7 +372,8 @@ print(result)
# way we can detect installing an unusable .o/.a file. This is on the TODO
# list for F34.
%_gcc_lto_cflags -flto=auto -ffat-lto-objects
%_clang_lto_cflags -flto=thin
# riscv64 does not have ld.gold support needed for LTO with Clang.
%_clang_lto_cflags %{nil}
%_lto_cflags %{expand:%%{_%{toolchain}_lto_cflags}}
# Default fortification level.

View File

@ -1,2 +1,2 @@
# Arches that GAP runs on
%gap_arches aarch64 ppc64le s390x x86_64
%gap_arches aarch64 ppc64le s390x x86_64 riscv64

View File

@ -1,2 +1,2 @@
# Arches that OpenJDK and dependent packages run on
%java_arches aarch64 ppc64le s390x x86_64
%java_arches aarch64 ppc64le s390x x86_64 riscv64

View File

@ -4,4 +4,4 @@
# those arches. Support for POWER and aarch64 arrived in nodejs v4. Support
# 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

View File

@ -9,7 +9,7 @@
Summary: Red Hat specific rpm configuration files
Name: redhat-rpm-config
Version: %{baserelease}
Release: 1%{?dist}
Release: 1.0.riscv64%{?dist}
# No version specified.
License: GPL+
URL: https://src.fedoraproject.org/rpms/redhat-rpm-config
@ -254,6 +254,11 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua
%doc buildflags.md
%changelog
* Thu Jul 27 2023 David Abdurachmanov <davidlt@rivosinc.com> - 261-1.0.riscv64
- Add riscv64 to %%gap_arches, %%java_arches, and %%nodejs_arches
- Set %%_clang_lto_cflags to %%nil as ld.gold is not implemented for riscv64
and thus LTO with Clang doesn't work.
* Fri Jul 7 2023 Florian Weimer <fweimer@redhat.com> - 261-1
- Fix warnings that appear during the build of the llvm package