diff options
author | Sergio Luis O. B. Correia <sergio@larces.uece.br> | 2009-11-23 17:32:51 -0800 |
---|---|---|
committer | Sergio Luis O. B. Correia <sergio@larces.uece.br> | 2009-11-23 17:32:51 -0800 |
commit | 4d33b8a8cd75101d60aeef4bd38fca472943b3dd (patch) | |
tree | b739091738e77c3d0fdbd27f77d22ed0e281dc32 /src/libmach | |
parent | 60c09d05acbb176013a749977f7b047930822a07 (diff) | |
download | golang-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/libmach')
-rw-r--r-- | src/libmach/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmach/Makefile b/src/libmach/Makefile index cde2cdf66..f1be126d2 100644 --- a/src/libmach/Makefile +++ b/src/libmach/Makefile @@ -49,10 +49,10 @@ OFILES=\ 8obj.$O\ $(shell uname | tr A-Z a-z).$O\ -HFILES=$(GOROOT)/include/mach.h elf.h macho.h obj.h +HFILES=../../include/mach.h elf.h macho.h obj.h install: $(LIB) - cp $(LIB) $(GOROOT)/lib + cp $(LIB) ../../lib $(LIB): $(OFILES) ar rsc $(LIB) $(OFILES) @@ -63,5 +63,5 @@ clean: rm -f *.$O $(LIB) nuke: clean - rm -f $(GOROOT)/lib/$(LIB) + rm -f "$(GOROOT)"/lib/$(LIB) |