runtime: set runtime.GOROOT value at build time
commit09e18d113b3c3dae896ac1a8ad1e0087adbb153b
authorIan Lance Taylor <iant@golang.org>
Tue, 21 Sep 2021 18:44:26 +0000 (21 11:44 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 21 Sep 2021 21:31:10 +0000 (21 14:31 -0700)
tree66b099a6ebc2076ef353afa90d9703824d023812
parent97cfb54c3ff15b9691fd1c12a29de56966bf8e0d
runtime: set runtime.GOROOT value at build time

In Go 1.17 the gc toolchain changed to set runtime.GOROOT in cmd/link
(previously it was runtime/internal/sys.GOROOT).  Do the same in libgo.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/351313

gotools/:
* Makefile.am (check-runtime): Add goroot.go to --extrafiles.
* Makefile.in: Regenerate.
gcc/go/gofrontend/MERGE
gotools/Makefile.am
gotools/Makefile.in
libgo/Makefile.am
libgo/Makefile.in
libgo/go/runtime/extern.go