From: Eloy D. <elo...@gm...> - 2007-07-13 22:35:49
|
I have finally been able to build the whole ruby package as universal binaries. I checked if gems (or any extconf based lib) directly build as universals as well, which is indeed the case: eloys-computer:/opt_bak/local/var/local-portfiles/ruby root# gem install libxml-ruby Building native extensions. This could take a while... Successfully installed libxml-ruby-0.3.8.4 eloys-computer:/opt_bak/local/var/local-portfiles/ruby root# file /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4/ext/xml/libxml_so.bundle /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4/ext/xml/libxml_so.bundle: Mach-O universal binary with 2 architectures /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4/ext/xml/libxml_so.bundle (for architecture i386): Mach-O bundle i386 /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4/ext/xml/libxml_so.bundle (for architecture ppc): Mach-O bundle ppc Eloy On 7/13/07, Eloy Duran <elo...@gm...> wrote: > It really depends on the gem.... > Like I said earlier Hpricot for instance builds as a universal binary > without any problems. > > Getting ruby to play nice with universal is the first hurdle. > I have it finally compiling as a universal, the only last problem is > with the openssl lib. > Once that's done I'll have a look at if mkmf needs additional patching > for C extensions to build as universal binaries. > > Eloy > > On 7/13/07, Tim Perrett <he...@ti...> wrote: > > I had a thought about this... > > > > I have been looking at the locomotive project, and the slingshot > > VM........ both of which has there own internal ruby environment. > > With locomotive you have to select either PPC or Intel bundles; > > slingshot on the other hand is only available for intel. > > > > Rather than trying to re-invent the wheel would it be fair to say > > that those who have gone before us couldn't make universal gem > > compilation work so thats why they have had to use platform specific > > implementations? > > > > Cheers > > > > Tim > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > |