diff options
-rw-r--r-- | lib/Android.mk | 3 | ||||
-rw-r--r-- | tc/Android.mk | 3 |
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) |