aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2012-03-17 00:14:07 +0100
committerJP Abgrall <jpa@google.com>2013-06-11 18:26:47 -0700
commit4675a9a740b84981a3186b7c8c788147f6675cb5 (patch)
tree0d78dda167d4d4ddfb21c39c79ae7cc47ec7d469
parent85d633f9776644b851a356924a2f5cdbbaada786 (diff)
downloadplatform_external_iproute2-4675a9a740b84981a3186b7c8c788147f6675cb5.tar.gz
platform_external_iproute2-4675a9a740b84981a3186b7c8c788147f6675cb5.tar.bz2
platform_external_iproute2-4675a9a740b84981a3186b7c8c788147f6675cb5.zip
iproute2: don't optimize unused routines
without these linker options such routines like can_parse_opt, vlan_parse_opt will be excluded from the final binary Change-Id: If783e5476fdb82af0173d717f0b1127399b349c5 Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
-rw-r--r--ip/Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/ip/Android.mk b/ip/Android.mk
index f3a41b1b..76fa4b5b 100644
--- a/ip/Android.mk
+++ b/ip/Android.mk
@@ -19,5 +19,7 @@ LOCAL_C_INCLUDES := $(KERNEL_HEADERS) external/iproute2/include
LOCAL_CFLAGS := -O2 -g -W -Wall
+LOCAL_LDFLAGS := -Wl,-export-dynamic -Wl,--no-gc-sections
+
include $(BUILD_EXECUTABLE)