diff options
| author | Russ Cox <rsc@golang.org> | 2009-09-22 07:48:43 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-09-22 07:48:43 -0700 |
| commit | 00c5348f530f965b6fc663a54a01448913a1512f (patch) | |
| tree | 640231ea6fa8cb7e322aab33f69f9edf9b5dfb7f | |
| parent | 1e3247ad5231cdeac824391038909fdbef8bcd90 (diff) | |
| download | golang-00c5348f530f965b6fc663a54a01448913a1512f.tar.gz | |
use $(shell uname) instead of $GOOS when
deciding what the host process support is.
this makes a cross-compiling (e.g., GOOS=nacl) build
still generate valid host debugger binaries.
R=r
DELTA=5 (0 added, 0 deleted, 5 changed)
OCL=34878
CL=34889
| -rw-r--r-- | src/cmd/cov/Makefile | 2 | ||||
| -rw-r--r-- | src/cmd/prof/Makefile | 2 | ||||
| -rw-r--r-- | src/libmach/Makefile | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/cov/Makefile b/src/cmd/cov/Makefile index 4e02547dc..9c0d8abaa 100644 --- a/src/cmd/cov/Makefile +++ b/src/cmd/cov/Makefile @@ -22,7 +22,7 @@ $(TARG): $(OFILES) clean: rm -f $(OFILES) $(TARG) -install: install-$(GOOS) +install: install-$(shell uname | tr A-Z a-z) install-linux: install-default # on Darwin, have to install and setgid; see $GOROOT/src/sudo.bash diff --git a/src/cmd/prof/Makefile b/src/cmd/prof/Makefile index 193f5896c..daab2df1b 100644 --- a/src/cmd/prof/Makefile +++ b/src/cmd/prof/Makefile @@ -22,7 +22,7 @@ $(TARG): $(OFILES) clean: rm -f $(OFILES) $(TARG) -install: install-$(GOOS) +install: install-$(shell uname | tr A-Z a-z) install-linux: install-default # on Darwin, have to install and setgid; see $GOROOT/src/sudo.bash diff --git a/src/libmach/Makefile b/src/libmach/Makefile index 4a5e3405f..b0031486a 100644 --- a/src/libmach/Makefile +++ b/src/libmach/Makefile @@ -45,7 +45,7 @@ OFILES=\ 5obj.$O\ 6obj.$O\ 8obj.$O\ - $(GOOS).$O\ + $(shell uname | tr A-Z a-z).$O\ HFILES=$(GOROOT)/include/mach.h elf.h macho.h obj.h |
