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: