Commit f347cc02 authored by Edward Wang's avatar Edward Wang Support setting NO_NEON to 0

The previous behaviour assumed that any string would be "1" without checking for zero, leading to deceptive behaviour.
parent 8ea481d3
...@@ -16,10 +16,14 @@ CFLAGS="-g -O2 -mlong-calls -fstrict-aliasing -funsafe-math-optimizations" ...@@ -16,10 +16,14 @@ CFLAGS="-g -O2 -mlong-calls -fstrict-aliasing -funsafe-math-optimizations"
LDFLAGS="-Wl,-Bdynamic,-dynamic-linker=/system/bin/linker -Wl,--no-undefined" LDFLAGS="-Wl,-Bdynamic,-dynamic-linker=/system/bin/linker -Wl,--no-undefined"
if [ -z "$NO_NEON" ]; then if [ -z "$NO_NEON" ]; then
if [ $NO_NEON -gt 0 ]; then
EXTRA_PARAMS=" --disable-neon"
EXTRA_PARAMS=" --enable-neon" EXTRA_PARAMS=" --enable-neon"
LDFLAGS="$LDFLAGS -Wl,--fix-cortex-a8" LDFLAGS="$LDFLAGS -Wl,--fix-cortex-a8"
EXTRA_PARAMS=" --disable-neon"
fi fi
CPPFLAGS="-I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/include -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/libs/${ANDROID_ABI}/include" CPPFLAGS="-I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/include -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/libs/${ANDROID_ABI}/include"
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