From b3901dc1d8c64f7c46840fdda0b114fdc790e56c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 3 May 2010 11:07:22 -0700 Subject: [PATCH] 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 --- src/Make.pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0