Re: Building for both i386 and PPC on OS X
Samuli Riihonen <[email protected]> Thu, 18 Oct 2007 08:37:09 +0300
| Newsgroups | gmane.comp.lib.ode |
|---|---|
| Message-ID | <[email protected]> |
Hi James and Hampus. You don't need two machines for building for different architectures. Just set the -arch -option to either ppc or i386 Actually you can set both: CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk Also give configure the option: --disable-dependency-tracking - Samuli On 18.10.2007, at 2.55, Hampa wrote: > Hi James, > > I was looking for that as well but ended up compiling the library on > two machines then creating the universal lib with lipo. > > Something like: > lipo -create libode_i386.a libode_ppc.a -output libode_uni.a > > cheers, > hampa > > On 18 Oct 2007, at 4:56 AM, James Covington wrote: > >> Currently when using Autotools configure sets the target system to >> whatever its running on. How would one build a Universal Binary? Is >> there an option I'm missing? >> >> -James >> _______________________________________________ >> ODE mailing list >> [email protected] >> http://ode.org/mailman/listinfo/ode > > _______________________________________________ > ODE mailing list > [email protected] > http://ode.org/mailman/listinfo/ode