aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2014-12-17 10:29:07 -0800
committerDmitriy Ivanov <dimitry@google.com>2014-12-17 10:58:00 -0800
commit471688ea52d1b47d382de726eb520a35e6a70a4b (patch)
tree7f0ea0094e4ae033409ab2a259380a3fb966f26e
parenteae80e8c17b6292cff0b10002bbc4398fc93c435 (diff)
downloadplatform_external_iproute2-471688ea52d1b47d382de726eb520a35e6a70a4b.tar.gz
platform_external_iproute2-471688ea52d1b47d382de726eb520a35e6a70a4b.tar.bz2
platform_external_iproute2-471688ea52d1b47d382de726eb520a35e6a70a4b.zip
Temporarily disable gc-sections optimization
Bug: 18403920 Change-Id: I9dbc3d715f47fb302a2d997232041405cc271c5d
-rw-r--r--lib/Android.mk3
-rw-r--r--tc/Android.mk3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/Android.mk b/lib/Android.mk
index 75d26e22..f0b12ade 100644
--- a/lib/Android.mk
+++ b/lib/Android.mk
@@ -35,6 +35,9 @@ LOCAL_CFLAGS := -O2 -g -W -Wall \
-Wno-unused-parameter \
-Werror
+# This is a work around for b/18403920
+LOCAL_LDFLAGS := -Wl,--no-gc-sections
+
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
diff --git a/tc/Android.mk b/tc/Android.mk
index 9ac59a59..f137d3ee 100644
--- a/tc/Android.mk
+++ b/tc/Android.mk
@@ -20,5 +20,8 @@ LOCAL_CFLAGS := -O2 -g -W -Wall -Wno-pointer-arith -Wno-sign-compare -Werror \
-Wno-unused-parameter \
-Wno-missing-field-initializers
+# This is a work around for b/18403920
+LOCAL_LDFLAGS := -Wl,--no-gc-sections
+
include $(BUILD_EXECUTABLE)