aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-02-28 14:55:27 -0500
committerRuss Cox <rsc@golang.org>2011-02-28 14:55:27 -0500
commita3ef19825c5d798f18eb62e7fe326fa33bfceafa (patch)
tree44c43bb2f9c42c59e39f2e8c3664255256610a6d
parentb00f7310f3d9b38a4989ff89a2c60865ac106b1c (diff)
downloadgo-a3ef19825c5d798f18eb62e7fe326fa33bfceafa.tar.xz
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
-rw-r--r--src/env.bash2
1 files changed, 1 insertions, 1 deletions
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