]> Cypherpunks repositories - gostls13.git/commitdiff
use $(shell uname) instead of $GOOS when
authorRuss Cox <rsc@golang.org>
Tue, 22 Sep 2009 14:48:43 +0000 (07:48 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 22 Sep 2009 14:48:43 +0000 (07:48 -0700)
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

src/cmd/cov/Makefile
src/cmd/prof/Makefile
src/libmach/Makefile

index 4e02547dcafcd39dedc2d78e16a926b6a7c19ede..9c0d8abaa051a0eb73804f57e825005a75daf37a 100644 (file)
@@ -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
index 193f5896cd5b35bb37bb9b047e6a7c42dd7c7e33..daab2df1bfaf7d6607fee457af1fa6a794c140cb 100644 (file)
@@ -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
index 4a5e3405fc3596e6b30add96358b3f4a44e3c23a..b0031486ab8b4c1ce0ed8e188f504b8aa39fb3ba 100644 (file)
@@ -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