Cross-compiling Ruby gems on Linux machine

ruby

#1

I am trying to cross compile a ruby gem “Eventmachine”. My target is an ARM Linux machine and my host is a x86_64 Linux machine. I found out his link this and it talks about cross compiling for Windows platform and not much about Linux platforms. Is cross compiling ruby gems supported on Linux platforms ?

I already have ruby and openssl cross compiled in Yocto build which are the dependencies of the ruby gem Eventmachine. It will be also helpful if anyone can point out how to point the cross compiler to use the cross compiled Ruby and Openssl in instead of host machine’s.

Thank you for your time.