From: Ian Lance Taylor Date: Mon, 3 May 2010 18:07:22 +0000 (-0700) Subject: Add _cgo_export.[ch] targets so that make knows how they are X-Git-Tag: weekly.2010-05-04~16 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b3901dc1d8c64f7c46840fdda0b114fdc790e56c;p=gostls13.git Add _cgo_export.[ch] targets so that make knows how they are built. Note that they are only built if a //export comment appears, so other targets should only use them if there is such a comment. Fixes #723. R=rsc CC=golang-dev https://golang.org/cl/1073041 --- diff --git a/src/Make.pkg b/src/Make.pkg index e16c521d38..8f444be123 100644 --- a/src/Make.pkg +++ b/src/Make.pkg @@ -106,7 +106,7 @@ dir: # x.cgo2.c - C implementations compiled with gcc to create a dynamic library # -_cgo_defun.c _cgo_gotypes.go: $(CGOFILES) +_cgo_defun.c _cgo_gotypes.go _cgo_export.c _cgo_export.h: $(CGOFILES) CGOPKGPATH=$(dir) $(QUOTED_GOBIN)/cgo $(CGO_CFLAGS) $(CGOFILES) # Ugly but necessary