Laurent Sansonetti
lsans****@apple*****
Fri Jul 20 09:42:46 JST 2007
On Jul 20, 2007, at 2:06 AM, Fujimoto Hisa wrote: > On 7/20/07, Laurent Sansonetti <lsans****@apple*****> wrote: >>> btw, Tiger build-in ruby is: >>> ruby -e 'p $:' >>> ["/Users/hisa/lib/ruby", "/usr/lib/ruby/site_ruby/1.8", "/usr/lib/ >>> ruby/site_ruby/1.8/powerpc-darwin8.0", "/usr/lib/ruby/site_ruby/1.8/ >>> universal-darwin8.0", "/usr/lib/ruby/site_ruby", "/usr/lib/ruby/ >>> 1.8", >>> "/usr/lib/ruby/1.8/powerpc-darwin8.0", "/usr/lib/ruby/1.8/universal- >>> darwin8.0", "."] >>> >>> this means just one libruby (universal) is better way for PPC. >>> i told you last night. Maybe Kimura-san understand detail >>> about this issue, because he has get this situation >>> when packaing rubycocoa 0.4.2univ. >> >> Are you sure? > > Perhaps, > > I may be confuse. Anyway I don't understand about it exactly. And it > seems diffcult to talk about it by email/english. Sorry talking about > this again on again. Please forget this issue if you can't see my > mean. Maybe kimura-san could see about it better than me. > > I guess it may be another way for the ppc issue: > > 1) make one universal libruby as $: include path to both ppc and > universal arch. > 2) put universal rubycocoa.bundle into unversal-arch-dir (for both ppc > and intel macine) > > the fact: > build-in libruby 1.8.2 on intel mac is > $ file /usr/lib/libruby.1.dylib > /usr/lib/libruby.1.dylib: Mach-O universal binary with 2 > architectures > /usr/lib/libruby.1.dylib (for architecture i386): Mach-O dynamically > linked shared library i386 > /usr/lib/libruby.1.dylib (for architecture ppc): Mach-O dynamically > linked shared library ppc > $ /usr/bin/ruby -e 'p $:' > ["/Users/hisa/lib/ruby", "/usr/lib/ruby/site_ruby/1.8", > "/usr/lib/ruby/site_ruby/1.8/powerpc-darwin8.0", > "/usr/lib/ruby/site_ruby/1.8/universal-darwin8.0", > "/usr/lib/ruby/site_ruby", "/usr/lib/ruby/1.8", > "/usr/lib/ruby/1.8/powerpc-darwin8.0", > "/usr/lib/ruby/1.8/universal-darwin8.0", "."] > > build-in libruby 1.8.2 on ppc mac is > $ file /usr/lib/libruby.1.dylib > /usr/lib/libruby.1.dylib: Mach-O dynamically linked shared library > ppc > $ /usr/bin/ruby -e 'p $:' > ["/usr/lib/ruby/site_ruby/1.8", > "/usr/lib/ruby/site_ruby/1.8/powerpc-darwin8.0", > "/usr/lib/ruby/site_ruby", "/usr/lib/ruby/1.8", > "/usr/lib/ruby/1.8/powerpc-darwin8.0", "."] I think I see your point now :-) So, to make sure. You're suggesting building libruby for both ppc and i386, and use the same $: than in Tiger i386 (so, that contains both powerpc-darwin and universal-darwin). I think this will work. I will try this tomorrow. Apologies for the confusion :-( Laurent