|
@@ -154,12 +154,11 @@ define HOST_GO_INSTALL_CMDS
|
|
|
cp -a $(@D)/pkg/include $(@D)/pkg/linux_* $(HOST_GO_ROOT)/pkg/
|
|
|
cp -a $(@D)/pkg/tool $(HOST_GO_ROOT)/pkg/
|
|
|
|
|
|
- # There is a known issue which requires the go sources to be installed
|
|
|
- # https://golang.org/issue/2775
|
|
|
+ # The Go sources must be installed to the host/ tree for the Go stdlib.
|
|
|
cp -a $(@D)/src $(HOST_GO_ROOT)/
|
|
|
|
|
|
- # Set all file timestamps to prevent the go compiler from rebuilding any
|
|
|
- # built in packages when programs are built.
|
|
|
+ # Set file timestamps to prevent the Go compiler from rebuilding the stdlib
|
|
|
+ # when compiling other programs.
|
|
|
find $(HOST_GO_ROOT) -type f -exec touch -r $(@D)/bin/go {} \;
|
|
|
endef
|
|
|
|