Commit 9c345b0b authored by Rafaël Carré's avatar Rafaël Carré

Build with -mthumb when targetting armv7-a

TODO: --enable-thumb for ffmpeg
parent fcf9d8e9
......@@ -85,6 +85,12 @@ cd contrib/android
# TODO: mpeg2, dts, theora
if test -z "${NO_NEON}" -o -n "${TEGRA2}"; then
# assumes armv7-a
echo "EXTRA_CFLAGS += -mthumb" >> config.mak
echo "NOTHUMB := -marm" >> config.mak
fi
make fetch
make
......
......@@ -14,12 +14,12 @@ LDFLAGS="-Wl,-Bdynamic,-dynamic-linker=/system/bin/linker -Wl,--no-undefined"
if [ -z "$NO_NEON" ]; then
CXX_TARGET="armeabi-v7a"
CFLAGS="$CFLAGS -mfpu=neon -mcpu=cortex-a8"
CFLAGS="$CFLAGS -mfpu=neon -mcpu=cortex-a8 -mthumb"
LDFLAGS="$LDFLAGS -Wl,--fix-cortex-a8"
EXTRA_PARAMS=" --enable-neon"
elif [ -n "$TEGRA2" ]; then
CXX_TARGET="armeabi-v7a"
CFLAGS="$CFLAGS -mfpu=vfpv3-d16 -mcpu=cortex-a9"
CFLAGS="$CFLAGS -mfpu=vfpv3-d16 -mcpu=cortex-a9 -mthumb"
EXTRA_PARAMS=" --disable-neon"
else
CXX_TARGET="armeabi"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment