Changes between Version 54 and Version 55 of Getting-Started/iPhone
- Timestamp:
- Oct 10, 2013 2:04:21 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Getting-Started/iPhone
v54 v55 139 139 === Supporting multiple architectures (armv6, armv7, armv7s, and so on) === 140 140 141 You need to compile separately for each architecture. If your iPhone SDK has '''{{{llvm-gcc}}}''' compiler (which is the supported compiler starting iOS SDK 5) , then you need to set '''{{{ARCH}}}''' environment variable to the desired architecture before running {{{configure-iphone}}}, for example:141 You need to compile separately for each architecture. If your iPhone SDK has '''{{{llvm-gcc}}}''' compiler (which is the supported compiler starting iOS SDK 5) or '''{{{clang}}}''', then you need to set '''{{{ARCH}}}''' environment variable to the desired architecture before running {{{configure-iphone}}}, for example: 142 142 {{{ 143 143 export ARCH = "-arch armv6" 144 }}}145 146 For traditional gcc, you need to use these compilation flags (for armv7):147 148 {{{149 export CFLAGS += -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8150 export LDFLAGS += -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8151 }}}152 153 For armv6, you need to compile using the flags:154 155 {{{156 export CFLAGS += -march=armv6 -mcpu=arm1176jzf-s157 export LDFLAGS += -march=armv6 -mcpu=arm1176jzf-s158 144 }}} 159 145