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 | 59c480da17fa03291e72c245bad4287ce0c832e6 (patch) | |
tree | 042b89a3ea57355d94936d81b559c01e3a924ac0 /src | |
parent | 36114a35dc5af32181ba34add6a3110a6c5ca5c8 (diff) | |
download | golang-59c480da17fa03291e72c245bad4287ce0c832e6.tar.gz |
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 issue 723.
R=rsc
CC=golang-dev
http://codereview.appspot.com/1073041
Diffstat (limited to 'src')
-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 e16c521d3..8f444be12 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 |