diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go index 62c8d90d304..7e87956e7d2 100644 --- a/src/cmd/go/build.go +++ b/src/cmd/go/build.go @@ -917,7 +917,7 @@ func (b *builder) gccCmd(objdir string, flags []string, args ...string) []string if build.DefaultContext.CgoEnabled { switch b.goos { case "windows": - a = append(a, "-mthread") + a = append(a, "-mthreads") default: a = append(a, "-pthread") }