From: Gustavo Niemeyer Date: Thu, 3 Feb 2011 03:37:40 +0000 (-0500) Subject: cgo: fix _cgo_run timestamp file order X-Git-Tag: weekly.2011-02-15~121 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=34336bd9f382512bda42711526031a6d94bd01df;p=gostls13.git cgo: fix _cgo_run timestamp file order The timestamp file is being created before cgo runs, which means errors will not prevent it from being created and thus will cause the build to break by rendering the rule up-to-date when it isn't. R=rsc CC=golang-dev https://golang.org/cl/4001049 --- diff --git a/src/Make.pkg b/src/Make.pkg index 0ffab72945..41124c828a 100644 --- a/src/Make.pkg +++ b/src/Make.pkg @@ -113,8 +113,8 @@ dir: ifdef CGOFILES _cgo_run: $(CGOFILES) - @touch _cgo_run CGOPKGPATH=$(dir) cgo -- $(CGO_CFLAGS) $(CGOFILES) + touch _cgo_run # _CGO_CFLAGS and _CGO_LDFLAGS are defined via the evaluation of _cgo_flags. # The include happens before the commands in the recipe run,