Hi,

At Fri, 6 Feb 2009 05:34:27 +0900,
Alex Fenton wrote in [ruby-talk:327034]:
> I'd like to build the recently released Ruby 1.9.1 as a universal binary 
> on OS X. I'm on an Intel 10.5, but want the ruby to be runnable on 10.4 
> or 10.5, Intel or PPC.

Universal binary support was very incomplete and has been dropped.
Not only it'd confused autoconf and fallen into disaster, x86 and ppc
platforms behave differently in some points.

> Following this tech note and advice:
> http://developer.apple.com/technotes/tn2005/tn2137.html
> http://lists.apple.com/archives/Xcode-users/2007/Oct/msg00686.html
> 
> I did:
> 
> Abaddon:ruby-1.9.1-p0 alex$ export CFLAGS="-O3 -g -isysroot 
> /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc 
> -mmacosx-version-min=10.4"
> Abaddon:ruby-1.9.1-p0 alex$ export LDFLAGS="-arch i386 -arch ppc"
> Abaddon:ruby-1.9.1-p0 alex$ ./configure --prefix=~/bleed

Do NOT use -arch option multiple times.

Instead, build for each archs and bind them with lipo command.

-- 
Nobu Nakada