diff --git a/golang.spec b/golang.spec index 7bc84e369af3f698df833d4a8800ddbab3ab4497..e3feaa8fc4d1b381b0e48a26ac58bda7d23a09c2 100644 --- a/golang.spec +++ b/golang.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 # Disable debuginfo packages %global debug_package %{nil} @@ -42,7 +42,7 @@ %endif # Build golang shared objects for stdlib -%ifarch loongarch64 +%ifarch loongarch64 riscv64 %bcond_with shared %else %bcond_without shared @@ -62,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.24 @@ -591,6 +594,9 @@ fi %files docs -f go-docs.list %changelog +* Fri Apr 35 2025 Shangtong Guo - 1.24.0-3 +- add support for riscv64 build + * Mon Feb 24 2025 limeidan - 1.24.0-2 - add internal linker support on loong64 - optimize the internal/bytealg package on loong64