From 4ad7d33510bf188e6278924c38a6be62523b0ac9 Mon Sep 17 00:00:00 2001 From: Charles Munger Date: Thu, 14 Nov 2013 01:04:31 +0000 Subject: [PATCH] Android.mk: add some release compile flags -ffunction-sections / -fdata-sections can improve final binary size when used with --gc-sections, speed impact untested Change-Id: I37f4b5da2f34acede7965c2da2e1b97125473adc --- Android.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index cecd9633..360660ef 100644 --- a/Android.mk +++ b/Android.mk @@ -3,7 +3,8 @@ LOCAL_PATH := $(call my-dir) WEBP_CFLAGS := -Wall -DANDROID -DHAVE_MALLOC_H -DHAVE_PTHREAD -DWEBP_USE_THREAD ifeq ($(APP_OPTIM),release) - WEBP_CFLAGS += -finline-functions -frename-registers -ffast-math -s + WEBP_CFLAGS += -finline-functions -frename-registers -ffast-math -s \ + -ffunction-sections -fdata-sections endif include $(CLEAR_VARS)