[ODE] Building for both i386 and PPC on OS X

Samuli Riihonen samuli at riihonen.net
Wed Oct 17 23:58:26 MST 2007


Hello again.

Has something been changed in the build system between 0.8 and 0.9  
that disables the environmental CFLAGS and CXXFLAGS?
For some reason it seems that these values do not end up in the  
generated Makefiles anymore.

- Samuli

On 18.10.2007, at 8.37, Samuli Riihonen wrote:

> 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
>>> ODE at ode.org
>>> http://ode.org/mailman/listinfo/ode
>>
>> _______________________________________________
>> ODE mailing list
>> ODE at ode.org
>> http://ode.org/mailman/listinfo/ode
>
> _______________________________________________
> ODE mailing list
> ODE at ode.org
> http://ode.org/mailman/listinfo/ode



More information about the ODE mailing list