The link below looks interesting, but personally I had so much trouble I think it’s best to cross compile from a system as close to the target system as possible (i.e. keep the VM). But if these tools are supported, as OSX is UNIX based maybe that’s already close enough.