[ODE] Building for both i386 and PPC on OS X
samuli at riihonen.net
Wed Oct 17 22:37:09 MST 2007
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:
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
> 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?
>> ODE mailing list
>> ODE at ode.org
> ODE mailing list
> ODE at ode.org
More information about the ODE