gcc allows for cross compilation. not sure how well it works but you can check the man pages for how to do it.