Ignore:
Timestamp:
Sep 29, 2017 2:30:23 AM (7 years ago)
Author:
riza
Message:

Close #2047: Use android ndk binutils when building with --use-ndk-cflags options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/configure-android

    r5620 r5666  
    7777  fi 
    7878 
    79   echo "=====" 
    80   echo "NDK_OUT : ${NDK_OUT}" 
    81   echo "=====" 
     79  # echo "=====" 
     80  # echo "NDK_OUT : ${NDK_OUT}" 
     81  # echo "=====" 
    8282 
    8383  for i in $NDK_OUT; do 
     
    142142    export LDFLAGS="${LDFLAGS} --sysroot=${ANDROID_SYSROOT}" 
    143143  else 
    144     #export AR="${NDK_TOOLCHAIN}/bin/${NDK_TARGET}-ar" 
    145     #export RANLIB="${NDK_TOOLCHAIN}/bin/${NDK_TARGET}-ranlib" 
     144    # find ar and ranlib 
     145    TC_AR=`find ${NDK_TOOLCHAIN}/bin/ -name "*-ar" | grep -v "gcc"` 
     146    TC_RANLIB=`find ${NDK_TOOLCHAIN}/bin/ -name "*-ranlib" | grep -v "gcc"` 
     147    if test "x${TC_AR}" != "x" -a "x${TC_RANLIB}" != "x"; then 
     148      export AR=$TC_AR 
     149      export RANLIB=$TC_RANLIB 
     150    fi  
    146151    TARGET_HOST="arm-linux-androideabi" 
    147152    export LDFLAGS="${LDFLAGS} --sysroot=${ANDROID_SYSROOT} -target ${NDK_TARGET} -gcc-toolchain ${NDK_TOOLCHAIN}" 
Note: See TracChangeset for help on using the changeset viewer.