Message ID | a514602fc2cdd03806a41028d9943a7c94cf92b8.1464286518.git.geoff@infradead.org |
---|---|
State | Accepted |
Headers | show |
diff --git a/package/go/go.mk b/package/go/go.mk index 095c318..88d2316 100644 --- a/package/go/go.mk +++ b/package/go/go.mk @@ -107,6 +107,10 @@ define HOST_GO_INSTALL_CMDS # There is a known issue which requires the go sources to be installed # https://golang.org/issue/2775 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. + find $(HOST_GO_ROOT) -type f -exec touch -r $(HOST_GO_TMP)/bin/go {} \; endef $(eval $(host-generic-package))
Set all file timestamps to prevent the go compiler from rebuilding any built in packages when programs are built. Signed-off-by: Geoff Levand <geoff@infradead.org> --- package/go/go.mk | 4 ++++ 1 file changed, 4 insertions(+)