Skip to content

Instantly share code, notes, and snippets.

@9re
Created February 28, 2012 09:05
Show Gist options
  • Save 9re/1931445 to your computer and use it in GitHub Desktop.
Save 9re/1931445 to your computer and use it in GitHub Desktop.
ios cross compile
# http://typester.no.de/np/071ada375b114894bdd7498b732eba84
export CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
export CFLAGS="-arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk"
export CXX=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++
export CXXFLAGS="-arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk"
export CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp
export AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment