Commit 586d9d5a authored by Russ Cox's avatar Russ Cox

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
parent 7390aa01
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment