From ecdc99c7354ab29bd8d41a3c3c1b7c18bfc67e07 Mon Sep 17 00:00:00 2001 From: Aviv Eyal Date: Sun, 8 Sep 2019 20:24:43 -0700 Subject: [PATCH] Note about https://github.com/golang/go/issues/24068 --- WindowsCrossCompiling.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WindowsCrossCompiling.md b/WindowsCrossCompiling.md index b90e0da95..83a6889e8 100644 --- a/WindowsCrossCompiling.md +++ b/WindowsCrossCompiling.md @@ -28,6 +28,9 @@ Note that the command above will silently rebuild most of standard library, and GOOS=windows GOARCH=amd64 go install ``` +Note also that `cgo` is disabled when cross-compiling, so any file that mentions `import "C"` will be silently ignored (See https://github.com/golang/go/issues/24068). + + ## Older Go version (<1.5) I use linux/386, but, I suspect, this procedure will apply to other host platforms as well.