compile with the right fpu flags for our processor
diff --git a/aos/build/aos.gypi b/aos/build/aos.gypi
index 13a45b4..0f7d4b6 100644
--- a/aos/build/aos.gypi
+++ b/aos/build/aos.gypi
@@ -95,6 +95,7 @@
}, {
'cflags': [
'-mcpu=cortex-a8',
+ '-mfpu=neon',
'-fstack-protector-all',
],
diff --git a/aos/build/download_externals.sh b/aos/build/download_externals.sh
index 5ed76af..a79ff5f 100755
--- a/aos/build/download_externals.sh
+++ b/aos/build/download_externals.sh
@@ -8,12 +8,13 @@
export CC=arm-linux-gnueabihf-gcc-4.7
export CXX=arm-linux-gnueabihf-g++-4.7
-export CFLAGS=-mcpu=cortex-a8
-export CXXFLAGS=-mcpu=cortex-a8
-export LDFLAGS=-mcpu=cortex-a8
+export CFLAGS=-mcpu="cortex-a8 -mfpu=neon"
+export CXXFLAGS=-mcpu="cortex-a8 -mfpu=neon"
export OBJDUMP=arm-linux-gnueabihf-objdump
# Flags that should get passed to all configure scripts.
-CONFIGURE_FLAGS="--host=arm-linux-gnueabihf CC=${CC} CXX=${CXX} CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} LDFLAGS=${LDFLAGS} OBJDUMP=${OBJDUMP}"
+# Some of them need to set LDFLAGS separately to work around stupid configure
+# scripts, so we can't just set that here.
+CONFIGURE_FLAGS="--host=arm-linux-gnueabihf CC=${CC} CXX=${CXX} CFLAGS=\"${CFLAGS}\" CXXFLAGS=\"${CXXFLAGS}\" OBJDUMP=${OBJDUMP}"
TMPDIR=/tmp/$$-aos-tmpdir
mkdir -p ${EXTERNALS}