]> Cypherpunks repositories - gostls13.git/commitdiff
Add _cgo_export.[ch] targets so that make knows how they are
authorIan Lance Taylor <iant@golang.org>
Mon, 3 May 2010 18:07:22 +0000 (11:07 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 3 May 2010 18:07:22 +0000 (11:07 -0700)
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

src/Make.pkg

index e16c521d38352613d560769c8e1a8fdf26c2ca62..8f444be1236c512b47283408dc4dc04b9829064a 100644 (file)
@@ -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