* commit 'c4aa4ff3551873c2e87a8679994d1f41f9909b0b': Fix build problems with gcc-4.6.x.
This commit is contained in:
commit
7ed999aaf0
1 changed files with 5 additions and 4 deletions
|
@ -114,11 +114,12 @@ TARGET_GLOBAL_CFLAGS += \
|
|||
-include $(android_config_h) \
|
||||
-I $(arch_include_dir)
|
||||
|
||||
# This warning causes dalvik not to build with gcc 4.6 and -Werror.
|
||||
# This warning causes dalvik not to build with gcc 4.6.x and -Werror.
|
||||
# We cannot turn it off blindly since the option is not available
|
||||
# in gcc-4.4.x
|
||||
ifneq ($(filter 4.6.0%, $(shell $(TARGET_CC) --version)),)
|
||||
TARGET_GLOBAL_CFLAGS += -Wno-unused-but-set-variable
|
||||
# in gcc-4.4.x. We also want to disable sincos optimization globally
|
||||
# by turning off the builtin sin function.
|
||||
ifneq ($(filter 4.6.%, $(shell $(TARGET_CC) --version)),)
|
||||
TARGET_GLOBAL_CFLAGS += -Wno-unused-but-set-variable -fno-builtin-sin
|
||||
endif
|
||||
|
||||
# This is to avoid the dreaded warning compiler message:
|
||||
|
|
Loading…
Reference in a new issue