]> Cypherpunks repositories - gostls13.git/commitdiff
build: exclude packages that fail on Plan 9 (for now)
authorAnthony Martin <ality@pbrane.org>
Mon, 20 Jun 2011 12:23:43 +0000 (22:23 +1000)
committerRob Pike <r@golang.org>
Mon, 20 Jun 2011 12:23:43 +0000 (22:23 +1000)
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

src/pkg/Makefile
src/pkg/runtime/cgo/Makefile

index b743660813dfba8d0a1f1a8fb1ffd07e96ac3ff2..3da71a200fb5852bffae548d9954d2556cca858b 100644 (file)
@@ -182,6 +182,36 @@ DIRS+=\
 
 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\
index f26da2c518e6dfec4638c06d4ca84c7a7f25a01c..7e752f127ff186be19d17c0c0ff07e9f4a7daca3 100644 (file)
@@ -10,6 +10,10 @@ ifeq ($(GOARCH),arm)
 ENABLED:=0
 endif
 
+ifeq ($(GOOS),plan9)
+ENABLED:=0
+endif
+
 ifeq ($(DISABLE_CGO),1)
 ENABLED:=0
 endif