From 4fe5d588bf86affd7e099d1d04026e55d627d982 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 18 Nov 2016 19:19:13 -0800 Subject: [PATCH] Android.mk: use -fvisibility=hidden brings the final libwebp.so size down 16/20K with arm64/armv7 builds using ndk-r13 Change-Id: I20d8aba61d6b692b0fc32f4b271e2f9872f03c28 (cherry picked from commit de568abfdbc15a2953efc764cb0dab51b6466a52) --- Android.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/Android.mk b/Android.mk index ef35795b..2030cd5a 100644 --- a/Android.mk +++ b/Android.mk @@ -1,6 +1,7 @@ LOCAL_PATH := $(call my-dir) WEBP_CFLAGS := -Wall -DANDROID -DHAVE_MALLOC_H -DHAVE_PTHREAD -DWEBP_USE_THREAD +WEBP_CFLAGS += -fvisibility=hidden ifeq ($(APP_OPTIM),release) WEBP_CFLAGS += -finline-functions -ffast-math \