From 31c25147e529facab4bdbf37eaad6fc16e98431e Mon Sep 17 00:00:00 2001 From: Songsong Zhang Date: Wed, 2 Apr 2025 18:59:42 +0200 Subject: [PATCH] Enable riscv64 build Resolves: RHEL-85861 Signed-off-by: Songsong Zhang --- golang.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/golang.spec b/golang.spec index 02fef12..a8b92da 100644 --- a/golang.spec +++ b/golang.spec @@ -46,14 +46,14 @@ %endif # Build golang using external/internal(close to cgo disabled) linking. -%ifarch %{ix86} x86_64 ppc64le %{arm} aarch64 s390x +%ifarch %{ix86} x86_64 ppc64le %{arm} aarch64 s390x riscv64 %global external_linker 1 %else %global external_linker 0 %endif # Build golang with cgo enabled/disabled(later equals more or less to internal linking). -%ifarch %{ix86} x86_64 ppc64le %{arm} aarch64 s390x +%ifarch %{ix86} x86_64 ppc64le %{arm} aarch64 s390x riscv64 %global cgo_enabled 1 %else %global cgo_enabled 0 @@ -100,6 +100,9 @@ %ifarch s390x %global gohostarch s390x %endif +%ifarch riscv64 +%global gohostarch riscv64 +%endif %global go_api 1.23 # Use only for prerelease versions