Changeset 3818


Ignore:
Timestamp:
Oct 17, 2011 7:22:45 AM (13 years ago)
Author:
ming
Message:

Closed #1389: Add support for iOS 5 build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/configure-iphone

    r3462 r3818  
    7272 
    7373if test "${CC}" = ""; then 
    74   for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/arm-apple-darwin*`; do 
    75     archname=`basename ${archpath}` 
    76     for gccver in `ls ${archpath}`; do 
    77        gccpath="${DEVPATH}/usr/bin/${archname}-gcc-${gccver}" 
    78        if test -e ${gccpath}; then 
    79           export CC="${gccpath}" 
    80 #          break 
    81        fi 
     74  # Try to use llvm-gcc if available 
     75  gccpath="${DEVPATH}/usr/bin/llvm-gcc" 
     76  if test -e ${gccpath}; then 
     77    export CC="${gccpath}" 
     78 
     79    if test "${ARCH}" = ""; then 
     80       export ARCH="-arch armv7" 
     81       echo "$F: ARCH is not specified, choosing ${ARCH}" 
     82    fi 
     83  else 
     84    for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/arm-apple-darwin*`; do 
     85       archname=`basename ${archpath}` 
     86       for gccver in `ls ${archpath}`; do 
     87          gccpath="${DEVPATH}/usr/bin/${archname}-gcc-${gccver}" 
     88          if test -e ${gccpath}; then 
     89            export CC="${gccpath}" 
     90          fi 
     91       done 
    8292    done 
    83     if test ! "${CC}" = ""; then 
    84        echo "$F: CC is not specified, choosing ${CC}" 
    85        break 
    86     fi 
    87   done 
     93  fi 
     94  if test ! "${CC}" = ""; then 
     95    echo "$F: CC is not specified, choosing ${CC}" 
     96  fi 
    8897fi 
    8998 
Note: See TracChangeset for help on using the changeset viewer.