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.