From fc6515c37f7bc0a0e609920010a9e9c2fbfd6082 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 4 Feb 2014 12:58:09 +0100 Subject: [PATCH] -mtune=none --- src/build/compile.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/build/compile.sh b/src/build/compile.sh index c7bf27367..77eb1fa11 100755 --- a/src/build/compile.sh +++ b/src/build/compile.sh @@ -61,7 +61,7 @@ elif [ "$1" == "crosscompile" ]; then if [ "$2" == "android" ] || [ "$2" == "android-armv6" ]; then COMPILE_FOR_ANDROID=yes [ -z "$march" ] && march=armv6; - [ -z "$mtune" ] && mtune=""; + [ -z "$mtune" ] && mtune=none; TOOLCHAIN_PREFIX="arm-unknown-linux-uclibcgnueabi" export CC="$TOOLCHAIN_PREFIX-gcc" CONFIGURE_FLAGS="--host=$TOOLCHAIN_PREFIX --enable-static-link --disable-ipv6" @@ -71,7 +71,7 @@ elif [ "$1" == "crosscompile" ]; then elif [ "$2" == "android-armv7" ]; then COMPILE_FOR_ANDROID=yes [ -z "$march" ] && march=armv7; - [ -z "$mtune" ] && mtune=""; + [ -z "$mtune" ] && mtune=none; TOOLCHAIN_PREFIX="arm-unknown-linux-uclibcgnueabi" export CC="$TOOLCHAIN_PREFIX-gcc" CONFIGURE_FLAGS="--host=$TOOLCHAIN_PREFIX --enable-static-link --disable-ipv6" @@ -128,7 +128,7 @@ type $CC >> "$DIR/install.log" 2>&1 || { echo >&2 "[ERROR] Please install \"$CC\ [ -z "$LDFLAGS" ] && LDFLAGS=""; [ -z "$CONFIGURE_FLAGS" ] && CONFIGURE_FLAGS=""; -if [ "$mtune" != "" ]; then +if [ "$mtune" != "none" ]; then export CFLAGS="-O2 -march=$march -mtune=$mtune -fno-gcse $CFLAGS" else export CFLAGS="-O2 -march=$march -fno-gcse $CFLAGS"