OSX universal rsync

Brendan Grieve brendan at worldguard.com.au
Thu Feb 21 03:24:58 GMT 2008

Robert DuToit wrote:
> Hi All,
>   Good news on rsync3.0pre10 universal binary
> On Feb 20, 2008, at 8:55 PM, Brendan Grieve wrote:
>> Robert DuToit wrote:
>>> Just an update,
>>> I have confirmed that rsync compiled on an intel won't work on PPC 
>>> and vice versa. A lot of people have both kinds of macs so it would 
>>> be good to have a universal binary for rsync 3.0, otherwise it means 
>>> two separate rsync builds. So any help on compiling a universal 
>>> rsync for macs would be much appreciated. The web page at ADC 
>>> explains about this but I don't have knowledge in that area. Thanks Rob
>>> ------8< snip --------------
>> Is such a thing possible? I would assume that the vastly different 
>> architecture changes between Intel and PPC would not make this 
>> possible unless the Mac has some form of 'emulator'?
> Actually I just did it with
> >patch -p1 <patches/flags.diff
> >patch -p1 <patches/crtimes.diff
> >./configure  CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch 
> ppc -arch i386" LD="gcc -mmacosx-version-min=10.4 -isysroot $SDK 
> -nostartfiles -arch i386 -arch ppc"
> >make
> I ran "file" on it and
> dialup-4:~ astrid$ file /Users/astrid/Desktop/unisink/rsync
> /Users/astrid/Desktop/unisink/rsync: Mach-O universal binary with 2 
> architectures
> /Users/astrid/Desktop/unisink/rsync (for architecture ppc):    Mach-O 
> executable ppc
> /Users/astrid/Desktop/unisink/rsync (for architecture i386):    Mach-O 
> executable i386
> it took some research to find the right configure options. I have 
> tested it so far on PPC Mac, Tiger and Leopard, and Intel Mac Tiger, 
> and it works like a breeze. I await confirmation on Intel leopard with 
> fingers crossed. Thanks everyone, Rob
> PS I hope no one thought I meant intel as in Windows!

Well done ;-) I learned something new today. I was unaware a file could 
support more than one architecture.

Brendan Grieve

More information about the rsync mailing list