From: Eloy D. <elo...@gm...> - 2007-07-17 11:47:24
|
Oh and also please try to build some gems that have C extensions and check if they also build as universal, like: hpricot & libxml Eloy On 7/17/07, Eloy Duran <elo...@gm...> wrote: > Hello all, > > Well it took a bit longer than I'd hoped, but I'm actually too busy > atm to play with these things :) > > Another problem came to my attention when discussing some things with > the guy that made the rubyosx package (thanks Jon for finding that > one). Which is an endian issue. > Anyways, this has also been fixed now after studying Apple's patches > to ruby 1.8.2. > > So please try this from source, because I'm indeed doing this al with macports. > Obviously you might want to also pass a --prefix option to configure. > > Patches: http://superalloy.nl/misc_files/rubycocoa/ruby-1.8.6-thread_hooks-universal-patches.zip > > $ patch -p0 < patch-thread-hooks > $ patch -p0 < patch-universal > $ CFLAGS="-arch ppc -arch i386" LDFLAGS="-arch ppc -arch i386" > ./configure --enable-shared --enable-pthread --without-tk > --disable-dependency-tracking > $ make all > > Check the output of: > $ file ruby > And also of: > $ file .ext/universal-darwin8.0/openssl.bundle > > They should both give something like: > openssl.bundle: Mach-O universal binary with 2 architectures > openssl.bundle (for architecture ppc): Mach-O bundle ppc > openssl.bundle (for architecture i386): Mach-O bundle i386 > > Once Laurent has written how to include ruby in a application bundle, > I think it might be a good option to add a patch-and-compile-ruby > option or something like that to standalonify.... Any ideas on this? > > Cheers, > Eloy > > On 7/17/07, Tim Perrett <he...@ti...> wrote: > > That would be great Laurent :) > > > > Cheers > > > > Tim > > > > > > On 16 Jul 2007, at 16:22, Laurent Sansonetti wrote: > > > > > I will write an article in the Wiki about this, since this is a > > > recurrent question. > > > > > > Cheers, > > > Laurent > > > > > > > ------------------------------------------------------------------------- > > 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 > > > |