From: Eloy D. <elo...@gm...> - 2007-07-12 08:50:01
|
I had a look at compiling hpricot as a universal bundle which works if I edit the Makefile created by extconf.rb. I had to add to both CFLAGS and the LDSHARED the following: -arch ppc -arch i386 What I'm wondering is how extconf works.... I thought it would pick up the correct flags from the configure settings of ruby itself, however running the extconf against the apple supplied universal ruby does not add these flags. So does someone with more knowledge of extconf know how we could patch this so any lib that builds with extconf automatically gets the correct flags? Cheers, Eloy On 7/12/07, Tim Perrett <he...@ti...> wrote: > Ok sounds good - would I then just be able to do a normal require > 'libxml' in my rb_main? Or would it be some OSX specific for loading > a bundle? > > In terms of handling both PPC and Intel architecture, surely there > must be a way of doing it? I would have thought there are some apps > out there doing it as there are so many gems that use ruby C > extensions and require compilation. Would one of the rc-dev team be > able to tell us weather or not standalonafiy takes this into account? > > All the best > > Tim > > > > On 11 Jul 2007, at 22:26, Jon Baer wrote: > > > Yeah that is what those *.bundle items are when you looked @ PackRat > > app ... > > > > Inside of lib you would put ... > > > > ./gems/1.8/gems/libxml-ruby-0.3.8.4/lib/xml/libxml_so.bundle > > > > And then require that bundle in rb_main. > > > > Im having a similar issue with Hpricot gem I want to use and not sure > > the bundling of native items will work properly if the ruby binary > > has not been updated. > > > > - Jon > > > ------------------------------------------------------------------------- > 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 > |