I finally got it to work by setting the CC environment variable. CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6" Note: You can't put the arch into the ARCH environment variable, someone didn't write the build script right. On Oct 12, 2010, at 10:03 PM, Mr. Gecko wrote: > Hello, I'm trying to compile PJSIP for both armv6 and armv7 so I can have my application working on 3.x and 4.x and I can't seem to get it to compile and make a fat file with both, the architecture always comes out as arm not armvX and because of that, I can't make a fat library with it. The way I'm having it compile for both is I'm changing the environment variable for ARCH to -arch armv6 and -arch armv7 on both build folders, I also tried doing both. The way I am making a fat file is below. > lipo -create -arch armv6 /path/to/arm6/libg7221codec-arm-apple-darwin9.a -arch armv7 /path/to/arm7/libg7221codec-arm-apple-darwin9.a -output /path/to/fat/libg7221codec-arm-apple-darwin9.a > > The output I get is "have the same architectures (arm) and can't be in the same fat output file" > > Thanks for any help, > Mr. Gecko