summaryrefslogtreecommitdiff
path: root/src/Make.cmd
diff options
context:
space:
mode:
authorDevon H. O'Dell <devon.odell@gmail.com>2009-12-11 15:14:09 -0800
committerDevon H. O'Dell <devon.odell@gmail.com>2009-12-11 15:14:09 -0800
commita067450a1fb8a60e1f1d3a7a7ca67120f567e7cb (patch)
tree2983280de546e6fd900fb4e74550f80fe688acaf /src/Make.cmd
parent1d0e078f040c63587ea347ab8e8e73bd534bdee1 (diff)
downloadgolang-a067450a1fb8a60e1f1d3a7a7ca67120f567e7cb.tar.gz
Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/src
This change removes the necessity to have GOBIN in $PATH, and also doesn't assume that the build is being run from $GOROOT/src. This is a minimal set of necessary changes to get Go to build happily from the FreeBSD ports collection. R=rsc CC=golang-dev http://codereview.appspot.com/171044 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/Make.cmd')
-rw-r--r--src/Make.cmd4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Make.cmd b/src/Make.cmd
index 7cf0a5b53..268fd5ea7 100644
--- a/src/Make.cmd
+++ b/src/Make.cmd
@@ -15,10 +15,10 @@ QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN))
all: $(TARG)
$(TARG): _go_.$O $(OFILES)
- $(LD) -o $@ _go_.$O $(OFILES)
+ $(QUOTED_GOBIN)/$(LD) -o $@ _go_.$O $(OFILES)
_go_.$O: $(GOFILES)
- $(GC) -o $@ $(GOFILES)
+ $(QUOTED_GOBIN)/$(GC) -o $@ $(GOFILES)
install: $(QUOTED_GOBIN)/$(TARG)