summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2010-06-04 12:04:50 -0700
committerDoug Kwan <dougkwan@google.com>2010-06-04 12:04:50 -0700
commit8cc4fcf4f6adcbc0e0aebfc24fbad9a4cddf2cfb (patch)
tree75c6a89eec0f79f5a1c08b9bd526519335cc23e9 /Android.mk
parente276c2d0434cc38c4b71ea12e09ccbb93bdee39c (diff)
downloadexternal_webkit-8cc4fcf4f6adcbc0e0aebfc24fbad9a4cddf2cfb.zip
external_webkit-8cc4fcf4f6adcbc0e0aebfc24fbad9a4cddf2cfb.tar.gz
external_webkit-8cc4fcf4f6adcbc0e0aebfc24fbad9a4cddf2cfb.tar.bz2
Work around build problem caused by too many stubs in a stub group.
Change-Id: I7ec73e2379db205330deb3e612700e5295e0b4d4
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index 888a16e..e8c2f08 100644
--- a/Android.mk
+++ b/Android.mk
@@ -360,8 +360,10 @@ LOCAL_STATIC_LIBRARIES += libjs
endif
LOCAL_LDFLAGS := -fvisibility=hidden
# This is required to work around a gold problem. This can be removed once
-# gold is fixed.
-LOCAL_LDFLAGS += -fuse-ld=bfd
+# gold is fixed. Gold generates more stubs than ld so it is easier for gold
+# to have too many stubs in a stub group.
+LOCAL_LDFLAGS += -Wl,--stub-group-size=1024276
+
LOCAL_CFLAGS := $(WEBKIT_CFLAGS)
LOCAL_C_INCLUDES := $(WEBKIT_C_INCLUDES)
LOCAL_PATH := $(BASE_PATH)