Skip to content

Instantly share code, notes, and snippets.

@mitsutaka
Created July 17, 2013 05:14
Show Gist options
  • Save mitsutaka/6017862 to your computer and use it in GitHub Desktop.
Save mitsutaka/6017862 to your computer and use it in GitHub Desktop.
Cross compile configuration for iOS 6.x on OSX 10.8
#!/bin/sh
TARGET_PLATFORM=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
TARGET_BIN="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin"
TARGET_GCC=$TARGET_BIN/arm-apple-darwin10-llvm-gcc-4.2
TARGET_CFLAGS="-isysroot $TARGET_PLATFORM -march=armv7 -mcpu=cortex-a8 -mfpu=neon"
exec $TARGET_GCC $TARGET_CFLAGS "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment