views:

17

answers:

0

Hello,

I have to create a universal binary for a dylib but I'm having some problems on compile time.

I am able to build my sources on mac os x 10.5 (i386 arch) but when I'm trying to compile the same sources from a mac os x 10.6 with target i386 (cause the default one on 10.6 is x86_64) I'm getting errors. I also tried to use the 10.5 sdk but got the same problem.

Seems that it's compiling for the actual platform but not for a target one declared with -arch flag in the compiler.

Any idea why? This dylib that I'm working on is using other two dylibs.