On Mon, Nov 29, 2010 at 12:06:50PM -0800, Vern Jensen wrote:
> I'd like to create a library that is Universal Binary (will work for both PPC
> and Intel). My understanding is that the pre-built Mac library that comes
> with Agar 1.4 is PPC-only.
>
> Can anyone help me with this? I would greatly appreciate it.
>
> -Vern
Hi,
Using the current SVN sources, in theory you should be able to compile a
universal binary by setting the CFLAGS as appropriate when calling
configure:
$ env CFLAGS="-arch i386 -arch ppc" ./configure
But I have not tested it and there may be endianness issues. It would be
safer instead to compile once with "-arch i386" and again with "-arch ppc"
(into a different --prefix) and using lipo(1) to join the compiled binaries.
I'll try to do a precompiled universal binary for the next Agar release.
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html