OSDN Git Service

Fix build problems with gcc-4.6.x.
authorDoug Kwan <dougkwan@google.com>
Thu, 13 Oct 2011 19:28:34 +0000 (12:28 -0700)
committerJean-Baptiste Queru <jbq@google.com>
Fri, 20 Apr 2012 14:52:47 +0000 (07:52 -0700)
Change-Id: If02f18efde4cec39c97bb0e7226b008cd6b85dd4

core/combo/TARGET_linux-arm.mk

index 8c89143..784010c 100644 (file)
@@ -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: