New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Silly Question? #86
Comments
Hello @ccoupe Sorry for the delayed response. mkmf will use information from rake-compiler uses the same trick of Ruby itself by generating a You will find the contents of that file here (well, partially, since version information is generated at runtime) https://github.com/luislavena/rake-compiler/blob/master/lib/rake/extensiontask.rb#L483-L510 And that results in a command line similar to this: $ ruby -I. -rfake extconf.rb I believe you will need to achieve something similar for your cross-compilation process to work. Let me know if this helps you. Regards. |
Luis, Thank you for the help. I managed get some hacks that work well I do need to do a more robust effort, so I thank you for the Has anyone attempted to use pthread for Windows-Ruby? I looked at Regards, On 01/13/2014 06:49 PM, Luis Lavena wrote:
|
@ccoupe: I am facing the very same challenge as you did. Could you please share the (working) hacks that you referred to above ? |
@chrisrgue , each gem with an ext requires it's own unique set of compile time flags and constants. I ended up writing a extconf.rb for each archicture/builder combination and run that instead. It's not something I would scale beyond the two gem of concern to me. You can look at what I've done here shoes/shoes3#72 but its very specific to that project. |
I apologize if this is off topic, but since rake compiler can do this it's my best place to ask my question (I think). I'm trying to cross compile an app that embeds Ruby - Shoes. The base Shoes app does cross compile and run on i386-linux, x86_64_linux, and raspbian. Shoes also has a couple of extensions with extconf.rb files. I can't figure out the magic in extconf.rb needed for mkmf.rb so that it generates a Makefile that uses the proper compiler.
I know it can be done. If I cross compile Ruby, it builds it's extensions with the proper compiler and the mkmf log clearly shows that. Anyway, here's the extconf.rb I'm trying. - it should fail, but it doesn't.
The output when running the build is
The resulting .o file and the lib are x86_64 (my build system). why does mkmf ignore me?. The append to $CFLAGS does work.
The text was updated successfully, but these errors were encountered: