All but two packages depend on net:
debug/proc
os/signal
With this change, we can produce
a working build with GOOS=plan9.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
4639053
endif
+ifeq ($(GOOS),plan9)
+NOPLAN9BUILD=\
+ crypto/tls\
+ debug/proc\
+ exp/gui/x11\
+ expvar\
+ http\
+ http/cgi\
+ http/fcgi\
+ http/httptest\
+ http/pprof\
+ http/spdy\
+ mail\
+ mime/multipart\
+ net\
+ net/dict\
+ net/textproto\
+ netchan\
+ os/signal\
+ rpc\
+ rpc/jsonrpc\
+ smtp\
+ syslog\
+ websocket\
+ ../cmd/godoc\
+ ../cmd/goinstall\
+
+DIRS:=$(filter-out $(NOPLAN9BUILD),$(DIRS))
+endif
+
NOTEST+=\
crypto\
crypto/openpgp/error\
ENABLED:=0
endif
+ifeq ($(GOOS),plan9)
+ENABLED:=0
+endif
+
ifeq ($(DISABLE_CGO),1)
ENABLED:=0
endif