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:
parent
b00f7310f3
commit
a3ef19825c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user