From a3ef19825c5d798f18eb62e7fe326fa33bfceafa Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 28 Feb 2011 14:55:27 -0500 Subject: [PATCH] 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 --- src/env.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env.bash b/src/env.bash index 4fc762821ec..c1055d561b2 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