golang: Update variables unexported in golang-values.mk
authorJeffery To <redacted>
Thu, 2 Jan 2020 20:56:42 +0000 (04:56 +0800)
committerJeffery To <redacted>
Wed, 8 Jan 2020 11:29:54 +0000 (19:29 +0800)
The lists of variables are updated for Go 1.13.

Signed-off-by: Jeffery To <redacted>
lang/golang/golang-values.mk

index d127ef6226f75bb654da4d002d2fa7cdc7587dfc..02b10b1ed728d8fb82b9b9bfcbc0185e388cf4d0 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2018 Jeffery To
+# Copyright (C) 2018, 2020 Jeffery To
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -24,6 +24,7 @@ unexport \
   GOBIN \
   GOCACHE \
   GODEBUG \
+  GOENV \
   GOFLAGS \
   GOOS \
   GOPATH \
@@ -38,25 +39,34 @@ unexport \
 
 # Environment variables for use with cgo:
 unexport \
+  AR \
+  CC \
   CGO_ENABLED \
   CGO_CFLAGS   CGO_CFLAGS_ALLOW   CGO_CFLAGS_DISALLOW \
   CGO_CPPFLAGS CGO_CPPFLAGS_ALLOW CGO_CPPFLAGS_DISALLOW \
   CGO_CXXFLAGS CGO_CXXFLAGS_ALLOW CGO_CXXFLAGS_DISALLOW \
   CGO_FFLAGS   CGO_FFLAGS_ALLOW   CGO_FFLAGS_DISALLOW \
-  CGO_LDFLAGS  CGO_LDFLAGS_ALLOW  CGO_LDFLAGS_DISALLOW
+  CGO_LDFLAGS  CGO_LDFLAGS_ALLOW  CGO_LDFLAGS_DISALLOW \
+  CXX \
+  FC
+# Unmodified:
+#   PKG_CONFIG
 
 # Architecture-specific environment variables:
 unexport \
   GOARM \
   GO386 \
   GOMIPS \
-  GOMIPS64
+  GOMIPS64 \
+  GOWASM
 
 # Special-purpose environment variables:
 unexport \
+  GCCGOTOOLDIR \
   GOROOT_FINAL \
-  GO_EXTLINK_ENABLED \
-  GIT_ALLOW_PROTOCOL
+  GO_EXTLINK_ENABLED
+# Unmodified:
+#   GIT_ALLOW_PROTOCOL
 
 # From https://golang.org/cmd/go/#hdr-Module_support
 unexport \
@@ -73,22 +83,33 @@ unexport \
 unexport \
   CC_FOR_TARGET \
   CXX_FOR_TARGET
+# Todo:
+#   CC_FOR_${GOOS}_${GOARCH}
+#   CXX_FOR_${GOOS}_${GOARCH}
 
 # From https://golang.org/doc/install/source#environment
 unexport \
-  GOHOSTARCH
+  GOHOSTOS \
+  GOHOSTARCH \
+  GOPPC64
 
 # From https://golang.org/src/make.bash
 unexport \
   GO_GCFLAGS \
   GO_LDFLAGS \
+  GO_LDSO \
   GO_DISTFLAGS \
   GOBUILDTIMELOGFILE \
   GOROOT_BOOTSTRAP
 
+# From https://golang.org/doc/go1.9#parallel-compile
+unexport \
+  GO19CONCURRENTCOMPILATION
+
 # From https://golang.org/src/cmd/dist/build.go
 unexport \
-  BOOT_GO_GCFLAGS
+  BOOT_GO_GCFLAGS \
+  BOOT_GO_LDFLAGS
 
 # From https://golang.org/src/cmd/dist/buildtool.go
 unexport \
git clone https://git.99rst.org/PROJECT