!343 在loongarch64架构上,使能external_linker 和 cgo。

From: @streamlet_hy 
Reviewed-by: @hcnbxx 
Signed-off-by: @hcnbxx
This commit is contained in:
openeuler-ci-bot 2024-04-23 02:35:02 +00:00 committed by Gitee
commit 6d5fcd542a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -12,19 +12,19 @@
%define __find_requires %{nil}
%bcond_with bootstrap
%ifarch x86_64 aarch64 riscv64 ppc64le
%ifarch x86_64 aarch64 riscv64 loongarch64 ppc64le
%bcond_without ignore_tests
%else
%bcond_with ignore_tests
%endif
%ifarch x86_64 aarch64 riscv64 ppc64le
%ifarch x86_64 aarch64 riscv64 loongarch64 ppc64le
%global external_linker 1
%else
%global external_linker 0
%endif
%ifarch x86_64 aarch64 riscv64 ppc64le
%ifarch x86_64 aarch64 riscv64 loongarch64 ppc64le
%global cgo_enabled 1
%else
%global cgo_enabled 0
@ -66,7 +66,7 @@
Name: golang
Version: 1.21.4
Release: 7
Release: 8
Summary: The Go Programming Language
License: BSD and Public Domain
URL: https://golang.org/
@ -364,7 +364,10 @@ fi
%files devel -f go-tests.list -f go-misc.list -f go-src.list
%changelog
* Thu Apr 16 2024 hanchao <hanchao63@huawei.com> - 1.21.4-7
* Thu Apr 18 2024 Huang Yang <huangyang@loongson.cn> - 1.21.4-8
- enable external_linker and cgo on loongarch64
* Tue Apr 16 2024 hanchao <hanchao63@huawei.com> - 1.21.4-7
- fix CVE-2023-45288
* Thu Mar 28 2024 hanchao <hanchao63@huawei.com> - 1.21.4-6