summaryrefslogtreecommitdiffstats
path: root/Android.libv8.mk
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2010-07-04 01:11:23 -0700
committerDoug Kwan <dougkwan@google.com>2010-07-04 01:11:23 -0700
commit85dec77e821ae98054f8e09ba3180c148a9264d6 (patch)
tree6ac2b5a2dcfec32fcc906552f28247c67d739705 /Android.libv8.mk
parent9dcf7e2f83591d471e88bf7d230651900b8e424b (diff)
downloadandroid_external_v8-85dec77e821ae98054f8e09ba3180c148a9264d6.tar.gz
android_external_v8-85dec77e821ae98054f8e09ba3180c148a9264d6.tar.bz2
android_external_v8-85dec77e821ae98054f8e09ba3180c148a9264d6.zip
Work around a problem triggered by -fdata-sections
Change-Id: I7330d1117187594b54e178e572ebbf9cbe73e9d4
Diffstat (limited to 'Android.libv8.mk')
-rw-r--r--Android.libv8.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Android.libv8.mk b/Android.libv8.mk
index 192a4775..8a5173a8 100644
--- a/Android.libv8.mk
+++ b/Android.libv8.mk
@@ -85,6 +85,11 @@ ifeq ($(DEBUG_V8),true)
LOCAL_CFLAGS += -DDEBUG -UNDEBUG
endif
+# Work around a problem in v8 triggered by -fdata-sections.
+ifeq ($(TARGET_ARCH),arm)
+LOCAL_CFLAGS += -fno-data-sections
+endif
+
LOCAL_C_INCLUDES += bionic/libc/include $(LOCAL_PATH)/src
include $(BUILD_STATIC_LIBRARY)