aboutsummaryrefslogtreecommitdiff
path: root/development/google-go-lang
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-12-25 14:26:14 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-28 08:22:37 +0700
commit3201311a03bcf6c7793208e5aae0c5c6189e6eb9 (patch)
tree12105a35a2b58ce70eca4ccd7b00ee1d994dacaa /development/google-go-lang
parent75e76aafe5f41f72f94c3be72026067da3d5b994 (diff)
development/google-go-lang: Updated arm builds.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/google-go-lang')
-rw-r--r--development/google-go-lang/google-go-lang.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/development/google-go-lang/google-go-lang.SlackBuild b/development/google-go-lang/google-go-lang.SlackBuild
index 117ddef8b343d..950d9e14466ac 100644
--- a/development/google-go-lang/google-go-lang.SlackBuild
+++ b/development/google-go-lang/google-go-lang.SlackBuild
@@ -55,7 +55,10 @@ elif [ "$ARCH" = "x86_64" ]; then
elif [ "$ARCH" = "arm" ]; then
LIBDIRSUFFIX=""
GOARCH="arm"
- export GOARM="6" # can be '5' as well, to use soft float instead of hardware
+ export GOARM="7" # can be '5' as well, to use soft float instead of hardware
+elif [ "$ARCH" = "aarch64" ]; then
+ LIBDIRSUFFIX="64"
+ GOARCH="arm64"
else
LIBDIRSUFFIX=""
GOARCH=386
@@ -119,6 +122,10 @@ export GOROOT="$(pwd)"
# The value of GOROOT once the package is installed
export GOROOT_FINAL="/usr/lib${LIBDIRSUFFIX}/go${VERSION}/go"
+if [ "$ARCH" = "arm" ]; then
+ export GOMAXPROCS=1
+fi
+
cd src
if [ "x${RUN_TEST}" = "xtrue" ] ; then