Commit b3901dc1 authored by Ian Lance Taylor's avatar Ian Lance Taylor

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
parent e1d20d0a
...@@ -106,7 +106,7 @@ dir: ...@@ -106,7 +106,7 @@ dir:
# x.cgo2.c - C implementations compiled with gcc to create a dynamic library # 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) CGOPKGPATH=$(dir) $(QUOTED_GOBIN)/cgo $(CGO_CFLAGS) $(CGOFILES)
# Ugly but necessary # Ugly but necessary
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment