From: Russ Cox Date: Thu, 6 Jan 2011 20:15:22 +0000 (-0500) Subject: Make.pkg: use installed runtime.h for cgo X-Git-Tag: weekly.2011-01-06~4 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c1fbe589a931168673c57662e7dd03416218df8e;p=gostls13.git Make.pkg: use installed runtime.h for cgo Fixes #1381. R=r, r2 CC=golang-dev https://golang.org/cl/3775050 --- 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