How do you cross compile Grafana? The normal golang way does not work. I have found some threads asking similar question, but I have not been able to figure out all the flags that need to be set. For example:
go run build.go -goarch=armv7 -cgo-enabled=1 -cc=arm-linux-gnueabihf-gcc -cxx=arm-linux-gnueabihf-g++ -pkg-arch=armhf -phjs=./phantomjs build pkg-deb
What is the significance of cgo, cxx, and cc? Is there a comprehensive guide?