From 9da025e2690a852207371efeabfc2096487fe2bf Mon Sep 17 00:00:00 2001 From: Dmitry P Date: Wed, 9 Sep 2015 15:07:27 +0800 Subject: [PATCH] Updated WindowsCrossCompiling (markdown) --- WindowsCrossCompiling.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WindowsCrossCompiling.md b/WindowsCrossCompiling.md index 0f4d91f4..7b957537 100644 --- a/WindowsCrossCompiling.md +++ b/WindowsCrossCompiling.md @@ -11,8 +11,8 @@ export go env GOROOT First step is to build host version of go: ```sh -$ cd $GOROOT/src -$ ./make.bash +cd $GOROOT/src +sudo -E GOOS=windows GOARCH=386 PATH=$PATH ./make.bash ``` Next you need to build the rest of go compilers and linkers. I have small program to do that: