mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-25 13:18:22 +01:00
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
This commit is contained in:
parent
cc55790e37
commit
4ad7d33510
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user