4f034c2357
$PREFIX/go14. Go 1.5 is going to be released soon, and it will depend on an existing installation of Go 1.4 to compile. So let's provide one.
17 lines
451 B
Text
17 lines
451 B
Text
$NetBSD: patch-doc_progs_run,v 1.1 2015/07/31 14:46:25 bsiegert Exp $
|
|
|
|
Support cgo on illumos.
|
|
|
|
--- doc/progs/run.orig 2014-12-11 01:18:10.000000000 +0000
|
|
+++ doc/progs/run
|
|
@@ -50,6 +50,10 @@ fi
|
|
if [ "$goos" == "openbsd" ]; then
|
|
c_go_cgo="cgo1 cgo2"
|
|
fi
|
|
+# cgo3 and cgo4 don't run on illumos, since cgo cannot handle stdout correctly
|
|
+if [ "$goos" == "solaris" ]; then
|
|
+ c_go_cgo="cgo1 cgo2"
|
|
+fi
|
|
if [ "$CGO_ENABLED" != 1 ]; then
|
|
c_go_cgo=""
|
|
fi
|