On Sunday, 21 February 2021 at 19:08:16 UTC+1 Luis Furquim wrote:

>
> That seems to me that when I set GOARCH=386 it disables CGO, silently 
> ignoring any code that references to C symbols.
>
>
>
Go disables Cgo when cross-compiling (GOARCH is different from your native 
GOARCH). You can enable Cgo manually with CGO_ENABLED=1.

Elias
 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c18776f4-191e-47cf-83cf-f8a2e350c1c5n%40googlegroups.com.

Reply via email to