Changes between Version 54 and Version 55 of Getting-Started/iPhone


Ignore:
Timestamp:
Oct 10, 2013 2:04:21 AM (11 years ago)
Author:
ming
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/iPhone

    v54 v55  
    139139=== Supporting multiple architectures (armv6, armv7, armv7s, and so on) === 
    140140 
    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: 
     141You 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: 
    142142{{{ 
    143143export 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-a8 
    150 export LDFLAGS += -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8 
    151 }}} 
    152  
    153 For armv6, you need to compile using the flags: 
    154  
    155 {{{ 
    156 export CFLAGS += -march=armv6 -mcpu=arm1176jzf-s 
    157 export LDFLAGS += -march=armv6 -mcpu=arm1176jzf-s 
    158144}}} 
    159145