kimura wataru
kimur****@i*****
Thu Oct 26 23:58:48 JST 2006
I found the following message in setup step. /usr/bin/ld: for architecture i386 /usr/bin/ld: warning /usr/lib/libxml2.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) I added "-Wl,-syslibroot" to CFLAGS to link libraries of /Developer/SDKs/MacOSX10.4u.sdk/ (r1177, 0.5.0-preview5). On Thu, 26 Oct 2006 17:20:50 +0900, Fujimoto Hisa wrote: > I've put 0.5 preview4 which was build on MacBook: > > $ svn diff --diff-cmd=diff -x '-U 1' -r1171:1174 > (snip) > Index: ext/rubycocoa/extconf.rb.in > =================================================================== > --- ext/rubycocoa/extconf.rb.in (revision 1171) > +++ ext/rubycocoa/extconf.rb.in (revision 1174) > @@ -20,2 +20,8 @@ > > +# check build as universal binary > +if '%%%build_universal%%%' == 'yes' then > + $CFLAGS << ' -arch ppc -arch i386' > + $LDFLAGS << ' -arch ppc -arch i386' > +end > + > create_makefile('rubycocoa') >