]> Cypherpunks repositories - gostls13.git/commitdiff
build: move $GOBIN ahead of /bin, /usr/bin in build $PATH
authorRuss Cox <rsc@golang.org>
Mon, 28 Feb 2011 19:55:27 +0000 (14:55 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 28 Feb 2011 19:55:27 +0000 (14:55 -0500)
Otherwise if there is an installed /usr/bin/6g the build
will use that one instead of the one it builds.

R=r
CC=golang-dev
https://golang.org/cl/4249045

src/env.bash

index 4fc762821ec6d66a438b9a78f4c329ee824f4914..c1055d561b27980fa82869f851870a8e5fa20522 100644 (file)
@@ -29,7 +29,7 @@ if [ ! -d "$GOBIN" -a "$GOBIN" != "$GOROOT/bin" ]; then
 fi
 
 export OLDPATH=$PATH
-export PATH=/bin:/usr/bin:"$GOBIN":$PATH
+export PATH="$GOBIN":/bin:/usr/bin:$PATH
 
 MAKE=make
 if ! make --version 2>/dev/null | grep 'GNU Make' >/dev/null; then