diff --git a/tools/configure b/tools/configure index db10d1bf64..aa37ef7d71 100755 --- a/tools/configure +++ b/tools/configure @@ -478,10 +478,12 @@ mipselcc () { } androidcc () { + buildhost=`uname | tr [:upper:] [:lower:]` gccchoice="4.4.3" gcctarget="arm-linux-androideabi-" - gccprefix=$ANDROID_NDK_PATH/toolchains/$gcctarget$gccchoice/prebuilt/linux-x86 - PATH=$PATH:$gccprefix/bin prefixtools $gcctarget + gccprefix=$ANDROID_NDK_PATH/toolchains/$gcctarget$gccchoice/prebuilt/$buildhost-x86 + PATH=$PATH:$gccprefix/bin + prefixtools $gcctarget GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` GCCOPTS="$GCCOPTS -ffunction-sections -march=armv5te -mtune=xscale -msoft-float -fomit-frame-pointer \ --sysroot=$ANDROID_NDK_PATH/platforms/android-4/arch-arm"