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
10 lines
205 B
Makefile
10 lines
205 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := lmkd.c
|
|
LOCAL_SHARED_LIBRARIES := libcutils liblog libm libc
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
LOCAL_MODULE := lmkd
|
|
|
|
include $(BUILD_EXECUTABLE)
|