diff --git a/tools/configure b/tools/configure index fbb10c4858..88c3738203 100755 --- a/tools/configure +++ b/tools/configure @@ -685,14 +685,12 @@ androidcc () { 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 \ + GCCOPTS="$GCCOPTS -march=armv5te -mtune=xscale -msoft-float -fomit-frame-pointer \ --sysroot=$ANDROID_NDK_PATH/platforms/android-5/arch-arm" - GLOBAL_LDOPTS="$GLOBAL_LDOPTS -nostdlib -lc -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack \ - --sysroot=$ANDROID_NDK_PATH/platforms/android-5/arch-arm" - LDOPTS="$LDOPTS -shared -nostdlib -ldl -llog" + GLOBAL_LDOPTS="-Wl,-z,defs -Wl,-z,noexecstack" + LDOPTS="-shared -ldl -llog --sysroot=$ANDROID_NDK_PATH/platforms/android-5/arch-arm $LDOPTS" endian="little" SHARED_LDFLAG="-shared" - SHARED_CFLAGS='' } whichadvanced () {