aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/debug
diff options
context:
space:
mode:
authorSergio Luis O. B. Correia <sergio@larces.uece.br>2009-11-23 17:32:51 -0800
committerRuss Cox <rsc@golang.org>2009-11-23 17:32:51 -0800
commit6fc820729e96527cfbb6bdd48836edcc1d0e4215 (patch)
tree50b343071af83ccc83b323c93a0be3cbe81aa457 /src/pkg/debug
parent2b1133ff863172d669defea18761a84e4a343d80 (diff)
downloadgo-6fc820729e96527cfbb6bdd48836edcc1d0e4215.tar.xz
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 #115. R=rsc, dsymonds1 https://golang.org/cl/157067
Diffstat (limited to 'src/pkg/debug')
-rw-r--r--src/pkg/debug/dwarf/Makefile4
-rw-r--r--src/pkg/debug/elf/Makefile4
-rw-r--r--src/pkg/debug/gosym/Makefile4
-rw-r--r--src/pkg/debug/macho/Makefile4
-rw-r--r--src/pkg/debug/proc/Makefile4
5 files changed, 10 insertions, 10 deletions
diff --git a/src/pkg/debug/dwarf/Makefile b/src/pkg/debug/dwarf/Makefile
index 8825c597ec..a626513c7c 100644
--- a/src/pkg/debug/dwarf/Makefile
+++ b/src/pkg/debug/dwarf/Makefile
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=debug/dwarf
GOFILES=\
@@ -13,4 +13,4 @@ GOFILES=\
type.go\
unit.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
diff --git a/src/pkg/debug/elf/Makefile b/src/pkg/debug/elf/Makefile
index ee3ca46d6a..931f9d24d4 100644
--- a/src/pkg/debug/elf/Makefile
+++ b/src/pkg/debug/elf/Makefile
@@ -2,11 +2,11 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=debug/elf
GOFILES=\
elf.go\
file.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
diff --git a/src/pkg/debug/gosym/Makefile b/src/pkg/debug/gosym/Makefile
index 715288250f..ac16b4ceea 100644
--- a/src/pkg/debug/gosym/Makefile
+++ b/src/pkg/debug/gosym/Makefile
@@ -2,12 +2,12 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=debug/gosym
GOFILES=\
pclntab.go\
symtab.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
diff --git a/src/pkg/debug/macho/Makefile b/src/pkg/debug/macho/Makefile
index 1a88c73778..d34aacf54b 100644
--- a/src/pkg/debug/macho/Makefile
+++ b/src/pkg/debug/macho/Makefile
@@ -2,11 +2,11 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=debug/macho
GOFILES=\
macho.go\
file.go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg
diff --git a/src/pkg/debug/proc/Makefile b/src/pkg/debug/proc/Makefile
index 1c6dc9089f..5444ec0dbb 100644
--- a/src/pkg/debug/proc/Makefile
+++ b/src/pkg/debug/proc/Makefile
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include $(GOROOT)/src/Make.$(GOARCH)
+include ../../../Make.$(GOARCH)
TARG=debug/proc
GOFILES=\
@@ -10,4 +10,4 @@ GOFILES=\
proc_$(GOOS).go\
regs_$(GOOS)_$(GOARCH).go\
-include $(GOROOT)/src/Make.pkg
+include ../../../Make.pkg