android: Adjust gcc/linker cmdline. Fixes build with ndk r7.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31542 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0bc64a6bb3
commit
84f651f9b6
1 changed files with 3 additions and 5 deletions
8
tools/configure
vendored
8
tools/configure
vendored
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue