diff --git a/src/Make.inc b/src/Make.inc index aa20e4c7070..3544f26ca40 100644 --- a/src/Make.inc +++ b/src/Make.inc @@ -22,7 +22,7 @@ endif GOROOT_FINAL?=$(GOROOT) ifeq ($(GOOS),) -GOOS:=${shell uname | tr A-Z a-z} +GOOS:=${shell uname | tr A-Z a-z | sed 's/mingw/windows/; s/windows.*/windows/'} endif ifeq ($(GOOS),darwin)