From c1fbe589a931168673c57662e7dd03416218df8e Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 6 Jan 2011 15:15:22 -0500 Subject: [PATCH] Make.pkg: use installed runtime.h for cgo Fixes #1381. R=r, r2 CC=golang-dev https://golang.org/cl/3775050 --- src/Make.pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Make.pkg b/src/Make.pkg index a748ff346d..ec7d5722ed 100644 --- a/src/Make.pkg +++ b/src/Make.pkg @@ -157,7 +157,7 @@ _CGO_LDFLAGS_darwin=-dynamiclib -Wl,-undefined,dynamic_lookup _CGO_LDFLAGS_windows=-shared -lm -mthreads # Have to compile the runtime header. -RUNTIME_CFLAGS=-I"$(GOROOT)/src/pkg/runtime" +RUNTIME_CFLAGS=-I"$(pkgdir)" # Compile _cgo_defun.c with 6c; needs access to the runtime headers. _cgo_defun.$O: _cgo_defun.c