]> Cypherpunks repositories - gostls13.git/commitdiff
lib9, libmach: Change GOOS references to GOHOSTOS
authorEvan Shaw <chickencha@gmail.com>
Tue, 15 Mar 2011 18:42:18 +0000 (14:42 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 15 Mar 2011 18:42:18 +0000 (14:42 -0400)
This makes it possible to build Windows binaries on non-Windows OSes.

R=golang-dev, rsc1, rsc
CC=golang-dev
https://golang.org/cl/4271046

src/lib9/Makefile
src/libmach/Makefile

index a10d7730aab7b5f2bbc3bb77c79d8d54e92fd0d6..d222e2f5314386fd10a99578c3580d7cd70bb559 100644 (file)
@@ -82,7 +82,7 @@ LIB9OFILES=\
        time.$O\
        tokenize.$O\
 
-ifeq ($(GOOS),windows)
+ifeq ($(GOHOSTOS),windows)
 LIB9OFILES+=\
        win32.$O\
 
index 5d7e87d86f54da5d98268518c93fd7ee5be0abdc..2a53749c810ef95cd60838f372ed55a711934cdb 100644 (file)
@@ -49,7 +49,7 @@ OFILES=\
        6obj.$O\
        8obj.$O\
 
-ifneq ($(GOOS),windows)
+ifneq ($(GOHOSTOS),windows)
 OFILES+=\
        $(shell uname | tr A-Z a-z).$O\