mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-19 07:37:01 +02:00
go: add riscv64
This commit is contained in:
parent
8bf21c5d51
commit
5de81f076a
2 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
if [ -z "$hostmakedepends" -o "${hostmakedepends##*gcc-go-tools*}" ]; then
|
||||
# gc compiler
|
||||
if [ -z "$archs" ]; then
|
||||
archs="aarch64* armv[567]* i686* x86_64* ppc64le*"
|
||||
archs="aarch64* armv[567]* i686* x86_64* ppc64le* riscv64*"
|
||||
fi
|
||||
hostmakedepends+=" go"
|
||||
nopie=yes
|
||||
|
@ -9,7 +9,7 @@ else
|
|||
# gccgo compiler
|
||||
if [ -z "$archs" ]; then
|
||||
# we have support for these in our gcc
|
||||
archs="aarch64* armv[567]* i686* x86_64* ppc64*"
|
||||
archs="aarch64* armv[567]* i686* x86_64* ppc64* riscv64*"
|
||||
fi
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
# target compiler to use; otherwise it'll just call gccgo
|
||||
|
@ -29,6 +29,7 @@ case "$XBPS_TARGET_MACHINE" in
|
|||
ppc*) export GOARCH=ppc;;
|
||||
mipsel*) export GOARCH=mipsle;;
|
||||
mips*) export GOARCH=mips;;
|
||||
riscv64*) export GOARCH=riscv64;;
|
||||
esac
|
||||
|
||||
export GOPATH="${wrksrc}/_build-${pkgname}-xbps"
|
||||
|
|
|
@ -25,6 +25,7 @@ case "${XBPS_TARGET_MACHINE}" in
|
|||
x86_64*) _goarch=amd64 ;;
|
||||
ppc64le*) _goarch=ppc64le ;;
|
||||
mips*) _goarch=mips ;;
|
||||
riscv64*) _goarch=riscv64 ;;
|
||||
*) broken="Unsupported architecture ${XBPS_TARGET_MACHINE}" ;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue