From c9781b027a8c3b704f6cbacec99bf57c70c6ec0c Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 3 Jan 2020 04:56:42 +0800 Subject: [PATCH] golang: Update variables unexported in golang-values.mk The lists of variables are updated for Go 1.13. Signed-off-by: Jeffery To --- lang/golang/golang-values.mk | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/lang/golang/golang-values.mk b/lang/golang/golang-values.mk index d127ef6226..02b10b1ed7 100644 --- a/lang/golang/golang-values.mk +++ b/lang/golang/golang-values.mk @@ -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 \ -- 2.30.2