From: Russ Cox Date: Mon, 28 Feb 2011 19:55:27 +0000 (-0500) Subject: build: move $GOBIN ahead of /bin, /usr/bin in build $PATH X-Git-Tag: weekly.2011-03-07~71 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a3ef19825c5d798f18eb62e7fe326fa33bfceafa;p=gostls13.git 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 --- diff --git a/src/env.bash b/src/env.bash index 4fc762821e..c1055d561b 100644 --- a/src/env.bash +++ b/src/env.bash @@ -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