diff options
author | Ian Lance Taylor <iant@golang.org> | 2010-05-03 11:07:22 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2010-05-03 11:07:22 -0700 |
commit | b3901dc1d8c64f7c46840fdda0b114fdc790e56c (patch) | |
tree | 174ac07f99320513819318922bdd3201f148f428 | |
parent | e1d20d0a514289db48edfcadba3ae39f96f52335 (diff) | |
download | go-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.pkg | 2 |
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 |