summaryrefslogtreecommitdiff
path: root/src/cmd/8g/Makefile
diff options
context:
space:
mode:
authorSergio Luis O. B. Correia <sergio@larces.uece.br>2009-11-23 17:32:51 -0800
committerSergio Luis O. B. Correia <sergio@larces.uece.br>2009-11-23 17:32:51 -0800
commit4d33b8a8cd75101d60aeef4bd38fca472943b3dd (patch)
treeb739091738e77c3d0fdbd27f77d22ed0e281dc32 /src/cmd/8g/Makefile
parent60c09d05acbb176013a749977f7b047930822a07 (diff)
downloadgolang-4d33b8a8cd75101d60aeef4bd38fca472943b3dd.tar.gz
go: makes it build for the case $GOROOT has whitespaces
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/8g/Makefile')
-rw-r--r--src/cmd/8g/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/8g/Makefile b/src/cmd/8g/Makefile
index b2b9d91d6..ea1f178d2 100644
--- a/src/cmd/8g/Makefile
+++ b/src/cmd/8g/Makefile
@@ -29,7 +29,7 @@ LIB=\
../gc/gc.a$O
$(TARG): $(OFILES) $(LIB)
- $(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lbio -l9 -lm
+ $(LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) $(LIB) -lbio -l9 -lm
$(OFILES): $(HFILES)
@@ -37,4 +37,4 @@ clean:
rm -f *.$O $(TARG) *.8 enam.c 8.out a.out
install: $(TARG)
- cp $(TARG) $(GOBIN)/$(TARG)
+ cp $(TARG) "$(GOBIN)"/$(TARG)