rsync3 universal binary for Mac OS X?

Matt McCutchen matt at mattmccutchen.net
Sat Mar 8 02:46:31 GMT 2008


On Fri, 2008-03-07 at 21:20 -0500, Robert DuToit wrote:
> So we may now have a universal binary rsync for OSX.

Awesome!

> Not sure  
> what lipo does exactly as it just seems to double the size of rsync.  
> Does it just provide both versions inside with  a gate directing the  
> present architecture to the right one?

Yup.  That's what a universal binary is, whether you create it in one
multi-architecture build or by manually combining the results of two
single-architecture builds.  The difference is that the first approach
works only if the project's build system is designed to handle
multi-architecture builds correctly, and rsync's evidently isn't.  Gcc
tries to make a multi-architecture build work the same way as a
single-architecture one by processing each source file passed to it
multiple times and automatically lipo-ing the results together, but this
trick is insufficient for a project that uses configure tests because
the test results are based on one architecture and may be wrong for the
other.

Matt



More information about the rsync mailing list