Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/go go/version.mk: now supports aarch64



details:   https://anonhg.NetBSD.org/pkgsrc/rev/283a9b24783f
branches:  trunk
changeset: 430520:283a9b24783f
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri May 01 16:39:59 2020 +0000

description:
go/version.mk: now supports aarch64

diffstat:

 lang/go/version.mk |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 6782b18060d4 -r 283a9b24783f lang/go/version.mk
--- a/lang/go/version.mk        Fri May 01 16:02:04 2020 +0000
+++ b/lang/go/version.mk        Fri May 01 16:39:59 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.89 2020/04/12 11:09:03 bsiegert Exp $
+# $NetBSD: version.mk,v 1.90 2020/05/01 16:39:59 tnn Exp $
 
 #
 # If bsd.prefs.mk is included before go-package.mk in a package, then this
@@ -36,7 +36,7 @@
 # Build dependency for Go
 GO_PACKAGE_DEP=                go${GOVERSSUFFIX}-${GO${GOVERSSUFFIX}_VERSION}*:../../lang/go${GOVERSSUFFIX}
 
-ONLY_FOR_PLATFORM=     *-*-i386 *-*-x86_64 *-*-earmv[67]hf
+ONLY_FOR_PLATFORM=     *-*-i386 *-*-x86_64 *-*-earmv[67]hf *-*-aarch64
 NOT_FOR_PLATFORM=      SunOS-*-i386
 .if ${MACHINE_ARCH} == "i386"
 GOARCH=                        386
@@ -47,6 +47,11 @@
 .elif ${MACHINE_ARCH} == "earmv6hf" || ${MACHINE_ARCH} == "earmv7hf"
 GOARCH=                        arm
 GOCHAR=                        5
+.elif ${MACHINE_ARCH} == "aarch64"
+GOARCH=                        arm64
+GOOPT=                 GOARM=7
+# GOHOSTARCH is being misdetected as arm on NetBSD. Unclear why.
+GOOPT+=                        GOHOSTARCH=arm64
 .endif
 .if ${MACHINE_ARCH} == "earmv6hf"
 GOOPT=                 GOARM=6



Home | Main Index | Thread Index | Old Index