From b5b2e45a209342bed1ebdc927512a1fe0cfb9901 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Wed, 7 May 2014 16:56:42 -0700 Subject: [PATCH] Make lmkd dynamically linked Statically linked binaries cannot take advantage of ASLR, making them less secure. In addition, statically linked binaries consume more ram, because shared libraries cannot be reused. executable size before: 87728 executable size after: 13656 Change-Id: I9d02d865f9beeaaaadcd5009f64ac015931d4b11 --- Android.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Android.mk b/Android.mk index 02d2754..2dd8af2 100644 --- a/Android.mk +++ b/Android.mk @@ -2,8 +2,7 @@ LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := lmkd.c -LOCAL_STATIC_LIBRARIES := libcutils liblog libm libc -LOCAL_FORCE_STATIC_EXECUTABLE := true +LOCAL_SHARED_LIBRARIES := libcutils liblog libm libc LOCAL_CFLAGS := -Werror LOCAL_MODULE := lmkd