CROSS Compiling GO with CGO enabled

I am trying to cross compile a cgo enabled package using below command.
env GOOS=linux GOARCH=arm go build

It is giving following error -
can’t load package: package main: no buildable Go source files

I am not sure if it is possible to cross compile a cgo enabled go code.
Please help.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.