From 541978af0a877232587f5e9cd1c51ecc2cfdb58b Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Fri, 20 Jan 2012 13:34:30 -0500 Subject: [PATCH] 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 --- src/libmach/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libmach/Makefile b/src/libmach/Makefile index 2a53749c81..7473204de0 100644 --- a/src/libmach/Makefile +++ b/src/libmach/Makefile @@ -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 -- 2.48.1