]> Cypherpunks repositories - gostls13.git/commitdiff
Make.pkg: use installed runtime.h for cgo
authorRuss Cox <rsc@golang.org>
Thu, 6 Jan 2011 20:15:22 +0000 (15:15 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 6 Jan 2011 20:15:22 +0000 (15:15 -0500)
Fixes #1381.

R=r, r2
CC=golang-dev
https://golang.org/cl/3775050

src/Make.pkg

index a748ff346db0bbf7e087290b105c11ad051a31d6..ec7d5722ed3c1b42bb2dcec590b533345338e1aa 100644 (file)
@@ -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