diff options
| author | Russ Cox <rsc@golang.org> | 2011-02-28 14:55:27 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-02-28 14:55:27 -0500 |
| commit | a3ef19825c5d798f18eb62e7fe326fa33bfceafa (patch) | |
| tree | 44c43bb2f9c42c59e39f2e8c3664255256610a6d | |
| parent | b00f7310f3d9b38a4989ff89a2c60865ac106b1c (diff) | |
| download | go-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.bash | 2 |
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 |
