AlmaLinux changes: Update env var for v2

This commit is contained in:
Eduard Abdullin 2025-04-17 01:40:49 +00:00 committed by root
commit e3e7cfb9cc

View File

@ -46,14 +46,14 @@
%endif %endif
# Build golang using external/internal(close to cgo disabled) linking. # 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 %global external_linker 1
%else %else
%global external_linker 0 %global external_linker 0
%endif %endif
# Build golang with cgo enabled/disabled(later equals more or less to internal linking). # 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 %global cgo_enabled 1
%else %else
%global cgo_enabled 0 %global cgo_enabled 0
@ -100,6 +100,9 @@
%ifarch s390x %ifarch s390x
%global gohostarch s390x %global gohostarch s390x
%endif %endif
%ifarch riscv64
%global gohostarch riscv64
%endif
%global go_api 1.23 %global go_api 1.23
# Use only for prerelease versions # Use only for prerelease versions