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>
diff --git a/ip/Android.mk b/ip/Android.mk
index 6b97780..6562143 100644
--- a/ip/Android.mk
+++ b/ip/Android.mk
@@ -19,5 +19,7 @@
LOCAL_CFLAGS := -O2 -g -W -Wall
+LOCAL_LDFLAGS := -Wl,-export-dynamic -Wl,--no-gc-sections
+
include $(BUILD_EXECUTABLE)