golang: Improve build isolation from user environment
authorJeffery To <redacted>
Mon, 3 Feb 2020 20:05:29 +0000 (04:05 +0800)
committerJeffery To <redacted>
Mon, 3 Feb 2020 20:05:29 +0000 (04:05 +0800)
commit3b5f1c73fb05816e74e0863e314b889e2c6146cf
treefa6230e242f01a6d3b4e452f4498fd585a45d66e
parent878c2996ffe16681925c3320838500dcab3afe03
golang: Improve build isolation from user environment

* Set GOENV=off when building Go compiler and packages, to ignore user's
  environment configuration file
* Set GOCACHE when building host Go
* Unset GOTMPDIR, to use the buildroot temp directory instead of temp
  directories in build_dir

Signed-off-by: Jeffery To <redacted>
lang/golang/golang-package.mk
lang/golang/golang/Makefile
git clone https://git.99rst.org/PROJECT