1
0
mirror of https://github.com/golang/go synced 2024-11-25 15:57:57 -07:00

build: move $GOBIN ahead of /bin, /usr/bin in build $PATH

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
This commit is contained in:
Russ Cox 2011-02-28 14:55:27 -05:00
parent b00f7310f3
commit a3ef19825c

View 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