Replace / opt / iphone / with / Developer / Platforms / iPhoneOS.platform / Developer / usr / or where your gcc is located. If I looked into the bin subdirectory, there will be no arm-apple-darwin-gcc, but arm-apple-darwin10-llvm-gcc-4.2.
Open a terminal and enter
cd /Developer/Platforms/iPhoneOS.platform/Developer/usr
ls bin/
You will now see a list of compilers available on your system. BTW: I donβt have an add-ons catalog, so I assume this is part of the special software package that you installed.
[ Update ]: The following flags are set in Xcode:
-x objective-c -arch armv7 -fmessage-length = 0 -pipe -std = c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -isysroot / Developer / Platforms / iPhoneOS. platform / Developer / SDK / iPhoneOS4.2.sdk -gdwarf-2 -mthumb -miphoneos-version-min = 4.2
I donβt know much about the details of each flag, but you should try installing them in CC inside your makefile.
source share