1
0
mirror of https://github.com/golang/go synced 2024-11-11 20:20:23 -07:00

libmach: cross compiling support

We already use GOHOSTOS to represent the host OS that the toolchain
        will be run on, so no need to resort to uname(1) to get that (and
        use uname(1) will make cross-compiling for another host impossible).

R=rsc, golang-dev
CC=golang-dev
https://golang.org/cl/5530050
This commit is contained in:
Shenghou Ma 2012-01-20 13:34:30 -05:00 committed by Russ Cox
parent 4ec8fd1cec
commit 541978af0a

View File

@ -49,13 +49,13 @@ OFILES=\
6obj.$O\
8obj.$O\
ifneq ($(GOHOSTOS),windows)
ifneq ($(GOHOSTOS),)
OFILES+=\
$(shell uname | tr A-Z a-z).$O\
$(GOHOSTOS).$O\
else
OFILES+=\
windows.$O\
$(shell uname | tr A-Z a-z).$O\
endif