aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-05-03 11:07:22 -0700
committerIan Lance Taylor <iant@golang.org>2010-05-03 11:07:22 -0700
commitb3901dc1d8c64f7c46840fdda0b114fdc790e56c (patch)
tree174ac07f99320513819318922bdd3201f148f428
parente1d20d0a514289db48edfcadba3ae39f96f52335 (diff)
downloadgo-b3901dc1d8c64f7c46840fdda0b114fdc790e56c.tar.gz
go-b3901dc1d8c64f7c46840fdda0b114fdc790e56c.zip
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
-rw-r--r--src/Make.pkg2
1 files changed, 1 insertions, 1 deletions
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