From 2ffdca007c8b0fdb62c9dcab310c1989b0edcf03 Mon Sep 17 00:00:00 2001 From: U2FsdGVkX1 Date: Tue, 14 Nov 2023 21:36:46 -0500 Subject: [PATCH] add riscv64 support --- golang.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/golang.spec b/golang.spec index abe45e9..1c39464 100644 --- a/golang.spec +++ b/golang.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 # Disable debuginfo packages %global debug_package %{nil} @@ -42,7 +42,11 @@ %endif # Build golang shared objects for stdlib +%ifarch riscv64 +%bcond_with shared +%else %bcond_without shared +%endif # Pre build std lib with -race enabled # Disabled due to 1.20 new cache usage, see 1.20 upstream release notes @@ -58,6 +62,9 @@ %ifarch loongarch64 %global gohostarch loong64 %endif +%ifarch riscv64 +%global gohostarch riscv64 +%endif # Comment out go_patch as needed %global go_api 1.20 @@ -628,6 +635,9 @@ fi %files docs -f go-docs.list %changelog +* Fri Nov 10 2023 U2FsdGVkX1 - 1.20.10-2 +- Add riscv64 support + * Sat Oct 28 2023 Funda Wang - 1.20.10-1 - New version 1.20.10 -- Gitee