For CLI or systems stuff, just cross-compile to the right target and you're done?
(i.e.,
https://github.com/koreader/koxtoolchain [Use the binaries right now, the latest gnu make release breaks the glibc build. Updating those TCs, which will also fix this issue, is at the top of my TODO list]).