PR go/65462
commit39eba414eb09b62b3c2ac7a7b904c17b1047eeaa
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Mar 2015 19:50:31 +0000 (24 19:50 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Mar 2015 19:50:31 +0000 (24 19:50 +0000)
tree278377d41dceea14428baa5d9f4bef9167baf464
parent82034000d47240839c7080d1dcaaa6c75d76c442
PR go/65462
cmd: Fix dependencies for 'go get' with gccgo

Problem described in GCC BZ 65462.
Generate the list of the standard GO package names based on what was built into libgo in the libgo Makefile.
Change the var name from reqPkgSrc to reqStdPkgSrc to clarify it only affects standard GO packages.
Skip the attempted loading of a package only if it is a standard GO package and the flag is set indicating its source is not required to be available.
This requires a corresponding change to gotools to build and link in the new file containing the list of standard GO package names that was generated by the libgo Makefile.

gotools/:
PR go/65462
* Makefile.am (go_cmd_go_files): Add $(libgodir)/zstdpkglist.go.
* Makefile.in: Rebuild.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221643 138bc75d-0d04-0410-961f-82ee72b054a4
gotools/ChangeLog
gotools/Makefile.am
gotools/Makefile.in
libgo/Makefile.am
libgo/Makefile.in
libgo/go/cmd/go/build.go
libgo/go/cmd/go/pkg.go
libgo/go/cmd/go/test.go