It's usually an enormous pain to set up. QEMU is probably the best option.
Maybe there are issues I'm not aware of but using dockcross has made cross-compilation quite easy in my experience.
https://github.com/dockcross/dockcross
T2 manages to do it
https://t2linux.com/
Depends on the language, it's pretty trivial with Go.
Maybe there are issues I'm not aware of but using dockcross has made cross-compilation quite easy in my experience.
https://github.com/dockcross/dockcross