[Android] configure.sh: Fix ARMv6 illegal instruction errors

Edward Wang git at videolan.org
Mon Jun 11 21:36:17 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Jun 10 22:04:59 2012 -0400| [3013d91caf7261b3b4b8893cf725370dfe2f83fc] | committer: Edward Wang

configure.sh: Fix ARMv6 illegal instruction errors

The configure.sh flags first got messed up in 68080f2bef01181e305ddc170af701c117022a55. This led to VFP instructions being used on non-NEON devices, which led to many painful days of the following nonsense:

I/DEBUG   (  954): signal 4 (SIGILL), fault addr 42387d94

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=3013d91caf7261b3b4b8893cf725370dfe2f83fc
---

 configure.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.sh b/configure.sh
index 92f0e07..3ff6a69 100755
--- a/configure.sh
+++ b/configure.sh
@@ -25,7 +25,7 @@ elif [ -n "$TEGRA2" ]; then
     EXTRA_PARAMS=" --disable-neon"
 else
     CXX_TARGET="armeabi"
-    CFLAGS="$CFLAGS -mcpu=arm1136jf-s -mfpu=vfp"
+    CFLAGS="$CFLAGS -march=armv6j -mtune=arm1136j-s -msoft-float"
     EXTRA_PARAMS=" --disable-neon"
 fi
 



More information about the Android mailing list