Adapt for riscv-64
This commit is contained in:
parent
72293a06dd
commit
42186258f0
17
golang.spec
17
golang.spec
@ -11,19 +11,19 @@
|
|||||||
%define __find_requires %{nil}
|
%define __find_requires %{nil}
|
||||||
|
|
||||||
%bcond_with bootstrap
|
%bcond_with bootstrap
|
||||||
%ifarch x86_64 aarch64
|
%ifarch x86_64 aarch64 riscv64
|
||||||
%bcond_without ignore_tests
|
%bcond_without ignore_tests
|
||||||
%else
|
%else
|
||||||
%bcond_with ignore_tests
|
%bcond_with ignore_tests
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch x86_64 aarch64
|
%ifarch x86_64 aarch64 riscv64
|
||||||
%global external_linker 1
|
%global external_linker 1
|
||||||
%else
|
%else
|
||||||
%global external_linker 0
|
%global external_linker 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch x86_64 aarch64
|
%ifarch x86_64 aarch64 riscv64
|
||||||
%global cgo_enabled 1
|
%global cgo_enabled 1
|
||||||
%else
|
%else
|
||||||
%global cgo_enabled 0
|
%global cgo_enabled 0
|
||||||
@ -59,10 +59,14 @@
|
|||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
%global gohostarch arm64
|
%global gohostarch arm64
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch riscv64
|
||||||
|
%global gohostarch riscv64
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
Name: golang
|
Name: golang
|
||||||
Version: 1.15.5
|
Version: 1.15.5
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: The Go Programming Language
|
Summary: The Go Programming Language
|
||||||
License: BSD and Public Domain
|
License: BSD and Public Domain
|
||||||
URL: https://golang.org/
|
URL: https://golang.org/
|
||||||
@ -376,11 +380,16 @@ fi
|
|||||||
%dir %{gopath}/src/golang.org
|
%dir %{gopath}/src/golang.org
|
||||||
%dir %{gopath}/src/golang.org/x
|
%dir %{gopath}/src/golang.org/x
|
||||||
|
|
||||||
|
%if %{shared}
|
||||||
%files help -f go-docs.list -f go-shared.list
|
%files help -f go-docs.list -f go-shared.list
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel -f go-tests.list -f go-misc.list -f go-src.list
|
%files devel -f go-tests.list -f go-misc.list -f go-src.list
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Nov 28 2020 whoisxxx <zhangxuzhou4@huawei.com> - 1.15.5-2
|
||||||
|
- Adate for RISC-V
|
||||||
|
|
||||||
* Tue Dec 18 liuzekun <liuzekun@huawei.com> - 1.15.5-1
|
* Tue Dec 18 liuzekun <liuzekun@huawei.com> - 1.15.5-1
|
||||||
- upgrade to 1.15.5
|
- upgrade to 1.15.5
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user