8 CFLAGS
="-O2 -Wall -DMKJAMBASE_COMPACT -fwrapv -march=native -mtune=native"
10 if [ `uname -m` = "armv7l" ]; then
12 checkoldcompiler
="tan"
13 elif [ `uname -m` = "arm" ]; then
15 checkoldcompiler
="tan"
17 # check for n900 and old compiler
18 if [ "$checkoldcompiler" = "tan" ]; then
19 ver
=`gcc -v 2>&1 | grep version`
20 if [ "z$ver" = "zgcc version 4.2.1" ]; then
21 echo "MSG: using n900 configuration..."
22 CFLAGS
="-O0 -Wall -DMKJAMBASE_COMPACT -fno-strict-aliasing"
24 which awk >/dev
/null
2>&1
25 if test "$?" = "0"; then
26 ver
=`gcc -v 2>&1 | grep version | awk '{print $3}'`
27 if [ "z$ver" = "z4.7.2" ]; then
28 echo "MSG: using n900 thumb2 configuration..."
29 CFLAGS
="-O2 -Wall -DMKJAMBASE_COMPACT -fgnu89-inline"
32 echo "MSG: no awk, it's so unsexy..."