Ignore:
Timestamp:
Nov 13, 2013 5:47:56 AM (11 years ago)
Author:
ming
Message:

Re #1516: Set AR and RANLIB (thanks to Brian Walker for the patch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/configure-android

    r4604 r4651  
    9696  export CC="${NDK_CC}" 
    9797  export CXX="${NDK_CXX}" 
     98  export AR=`echo ${NDK_CXX}|sed 's/-g++/-ar/'`; 
     99  export RANLIB=`echo ${NDK_CXX}|sed 's/-g++/-ranlib/'`; 
    98100 
    99101  export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/" 
     
    120122  export CC="${ANDROID_TC}/bin/${TARGET_HOST}-gcc" 
    121123  export CXX="${ANDROID_TC}/bin/${TARGET_HOST}-g++" 
     124  export AR="${ANDROID_TC}/bin/${TARGET_HOST}-ar" 
     125  export RANLIB="${ANDROID_TC}/bin/${TARGET_HOST}-ranlib" 
    122126 
    123127  export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/" 
     
    138142  echo " LDFLAGS = ${LDFLAGS}" 
    139143  echo " LIBS = ${LIBS}" 
     144  echo " AR = ${AR}" 
     145  echo " RANLIB = ${RANLIB}" 
    140146fi 
    141147 
Note: See TracChangeset for help on using the changeset viewer.