summaryrefslogtreecommitdiffstats
path: root/core/combo/TARGET_linux-mips.mk
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-10-23 17:15:01 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-10-23 17:15:01 -0700
commit267b07b2aafede64d212402c3554fc2888821c98 (patch)
tree0944d4c7cfd940188d86be0537d0ca60803a2177 /core/combo/TARGET_linux-mips.mk
parentde42d4b0bfc79760eb05eb29dd44d159903530ac (diff)
parent7176e8013bb2e563c3e3e56af4c04c50de3a7f37 (diff)
downloadbuild-267b07b2aafede64d212402c3554fc2888821c98.zip
build-267b07b2aafede64d212402c3554fc2888821c98.tar.gz
build-267b07b2aafede64d212402c3554fc2888821c98.tar.bz2
am 7176e801: Merge "Add TARGET_GCC_VERSION"
* commit '7176e8013bb2e563c3e3e56af4c04c50de3a7f37': Add TARGET_GCC_VERSION
Diffstat (limited to 'core/combo/TARGET_linux-mips.mk')
-rw-r--r--core/combo/TARGET_linux-mips.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/combo/TARGET_linux-mips.mk b/core/combo/TARGET_linux-mips.mk
index b2b006a..da1f360 100644
--- a/core/combo/TARGET_linux-mips.mk
+++ b/core/combo/TARGET_linux-mips.mk
@@ -43,7 +43,7 @@ include $(TARGET_ARCH_SPECIFIC_MAKEFILE)
# You can set TARGET_TOOLS_PREFIX to get gcc from somewhere else
ifeq ($(strip $(TARGET_TOOLS_PREFIX)),)
-TARGET_TOOLCHAIN_ROOT := prebuilts/gcc/$(HOST_PREBUILT_TAG)/mips/mipsel-linux-android-4.6
+TARGET_TOOLCHAIN_ROOT := prebuilts/gcc/$(HOST_PREBUILT_TAG)/mips/mipsel-linux-android-$(TARGET_GCC_VERSION)
TARGET_TOOLS_PREFIX := $(TARGET_TOOLCHAIN_ROOT)/bin/mipsel-linux-android-
endif
@@ -92,10 +92,10 @@ android_config_h := $(call select-android-config-h,linux-mips)
TARGET_ANDROID_CONFIG_CFLAGS := -include $(android_config_h) -I $(dir $(android_config_h))
TARGET_GLOBAL_CFLAGS += $(TARGET_ANDROID_CONFIG_CFLAGS)
-# This warning causes dalvik not to build with gcc 4.6.x and -Werror.
+# This warning causes dalvik not to build with gcc 4.6+ and -Werror.
# We cannot turn it off blindly since the option is not available
# in gcc-4.4.x.
-ifneq ($(filter 4.6 4.6.%, $(shell $(TARGET_CC) --version)),)
+ifneq ($(filter 4.6 4.6.% 4.7 4.7.%, $(shell $(TARGET_CC) --version)),)
TARGET_GLOBAL_CFLAGS += -Wno-unused-but-set-variable \
-fno-strict-volatile-bitfields
endif