]> Cypherpunks repositories - gostls13.git/commitdiff
build: fix cross-compile on Plan 9
authorRuss Cox <rsc@golang.org>
Fri, 11 Nov 2016 20:45:09 +0000 (15:45 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 22 Nov 2016 01:32:28 +0000 (01:32 +0000)
In Plan 9's shell,

GOBIN= \
foo bar

is the same as

GOBIN=foo bar

Write what was meant, which is

GOBIN=() \
foo bar

Fixes #17737.

Change-Id: Ie5a1b51a7cec950b5e78bbbe99cbc3cfe102f980
Reviewed-on: https://go-review.googlesource.com/33144
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Quentin Smith <quentin@golang.org>
Reviewed-by: David du Colombier <0intro@gmail.com>
src/make.rc

index 243f83cc0f0223fd7e66ecb159a0f9f76f1f4ffd..ba3554cd764304de9746809b41dc249476e96ed2 100755 (executable)
@@ -80,7 +80,7 @@ if(~ $sysname vx32)
 
 if(! ~ $GOHOSTARCH $GOARCH || ! ~ $GOHOSTOS $GOOS){
        echo '##### Building packages and commands for host,' $GOHOSTOS/$GOHOSTARCH^.
-       GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH GOBIN= \
+       GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH GOBIN=() \
                $GOTOOLDIR/go_bootstrap install -gcflags $"GO_GCFLAGS -ldflags $"GO_LDFLAGS -v $pflag std cmd
        echo
 }